Changeset f25bf53 in bootscripts-embedded for clfs/rc.d/startup


Ignore:
Timestamp:
Jan 31, 2009, 10:18:40 AM (15 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
master
Children:
4230d00
Parents:
fe1b471
Message:

Formatting change to embedded

File:
1 edited

Legend:

Unmodified
Added
Removed
  • clfs/rc.d/startup

    rfe1b471 rf25bf53  
    2020fsck -T -C /
    2121if [ "$?" -gt 2 ]; then
    22         echo "WARNING: Errors found while checking root filesystem."
    23         echo "You can login as root now, the system will reboot after logout."
    24         sulogin
    25         reboot
     22  echo "WARNING: Errors found while checking root filesystem."
     23  echo "You can login as root now, the system will reboot after logout."
     24  sulogin
     25  reboot
    2626elif [ "$?" = "2" ]; then
    27         echo "NOTICE: System needs to be rebooted now."
    28         sleep 1
    29         reboot
     27  echo "NOTICE: System needs to be rebooted now."
     28  sleep 1
     29  reboot
    3030else
    31         echo -n "Checking root filesystem: "
    32         check_status
     31  echo -n "Checking root filesystem: "
     32  check_status
    3333fi
    3434
     
    4444fsck -A -C -R -T -t nonfs,nosmbfs
    4545if [ "$?" -gt 2 ]; then
    46         echo "WARNING: Errors found while checking filesystems."
    47         echo "You can login as root now, the system will reboot after logout."
    48         sulogin
    49         reboot
     46  echo "WARNING: Errors found while checking filesystems."
     47  echo "You can login as root now, the system will reboot after logout."
     48  sulogin
     49  reboot
    5050elif [ "$?" = "2" ]; then
    51         echo "NOTICE: System needs to be rebooted now."
    52         sleep 1
    53         reboot
     51  echo "NOTICE: System needs to be rebooted now."
     52  sleep 1
     53  reboot
    5454else
    55         echo -n "Checking local filesystems: "
    56         check_status
     55  echo -n "Checking local filesystems: "
     56  check_status
    5757fi
    5858
     
    8282echo "Running start scripts."
    8383
    84 for i in /etc/rc.d/start/*
    85 do
    86         if [ -x $i ]; then
    87                 $i start
    88         fi
     84for i in /etc/rc.d/start/*; do
     85  if [ -x $i ]; then
     86    $i start
     87  fi
    8988done
Note: See TracChangeset for help on using the changeset viewer.