Changeset 8172859 in clfs-embedded for bootscripts/clfs/rc.d/startup
- Timestamp:
- Sep 7, 2009, 4:19:14 AM (15 years ago)
- Branches:
- master
- Children:
- 2e856a4
- Parents:
- b71d8ca
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bootscripts/clfs/rc.d/startup
rb71d8ca r8172859 13 13 /sbin/mdev -s 14 14 15 echo -n "Setting system clock: " 16 hwclock --hctosys --utc 17 check_status 15 if [ -x /sbin/hwclock ]; then 16 echo -n "Setting system clock: " 17 hwclock --hctosys --utc 18 check_status 19 fi 18 20 19 echo "Starting fsck for root filesystem." 20 fsck -T -C / 21 if [ "$?" -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 26 elif [ "$?" = "2" ]; then 27 echo "NOTICE: System needs to be rebooted now." 28 sleep 1 29 reboot 30 else 31 echo -n "Checking root filesystem: " 32 check_status 21 if [ -x /sbin/fsck ]; then 22 echo "Starting fsck for root filesystem." 23 fsck -T -C / 24 if [ "$?" -gt 2 ]; then 25 echo "WARNING: Errors found while checking root filesystem." 26 echo "You can login as root now, the system will reboot after logout." 27 sulogin 28 reboot 29 elif [ "$?" = "2" ]; then 30 echo "NOTICE: System needs to be rebooted now." 31 sleep 1 32 reboot 33 else 34 echo -n "Checking root filesystem: " 35 check_status 36 fi 33 37 fi 34 38 … … 57 61 fi 58 62 59 echo -n "Enabling swap space: " 60 swapon -a 61 check_status 63 if [ -x /sbin/swapon ]; then 64 echo -n "Enabling swap space: " 65 swapon -a 66 check_status 67 fi 62 68 63 69 echo -n "Setting hostname: "
Note:
See TracChangeset
for help on using the changeset viewer.