Changeset f25bf53 in bootscripts-embedded for clfs/rc.d/startup
- Timestamp:
- Jan 31, 2009, 10:18:40 AM (16 years ago)
- Branches:
- master
- Children:
- 4230d00
- Parents:
- fe1b471
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
clfs/rc.d/startup
rfe1b471 rf25bf53 20 20 fsck -T -C / 21 21 if [ "$?" -gt 2 ]; then 22 23 24 25 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 26 26 elif [ "$?" = "2" ]; then 27 28 29 27 echo "NOTICE: System needs to be rebooted now." 28 sleep 1 29 reboot 30 30 else 31 32 31 echo -n "Checking root filesystem: " 32 check_status 33 33 fi 34 34 … … 44 44 fsck -A -C -R -T -t nonfs,nosmbfs 45 45 if [ "$?" -gt 2 ]; then 46 47 48 49 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 50 50 elif [ "$?" = "2" ]; then 51 52 53 51 echo "NOTICE: System needs to be rebooted now." 52 sleep 1 53 reboot 54 54 else 55 56 55 echo -n "Checking local filesystems: " 56 check_status 57 57 fi 58 58 … … 82 82 echo "Running start scripts." 83 83 84 for i in /etc/rc.d/start/* 85 do 86 if [ -x $i ]; then 87 $i start 88 fi 84 for i in /etc/rc.d/start/*; do 85 if [ -x $i ]; then 86 $i start 87 fi 89 88 done
Note:
See TracChangeset
for help on using the changeset viewer.