Changeset 1933be2 in clfs-embedded for bootscripts/clfs/rc.d/startup
- Timestamp:
- Sep 8, 2009, 11:33:21 AM (15 years ago)
- Branches:
- master
- Children:
- 67b70f4
- Parents:
- 2e856a4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bootscripts/clfs/rc.d/startup
r2e856a4 r1933be2 11 11 /bin/mkdir /dev/shm 12 12 /bin/echo "/sbin/mdev" > /proc/sys/kernel/hotplug 13 14 echo -n "Starting mdev: " 13 15 /sbin/mdev -s 16 check_status 14 17 15 if [ -x /sbin/hwclock ]; then 18 echo -n "Mounting devpts: " 19 mount /dev/pts 20 check_status 21 22 if [ -x /sbin/hwclock ] && [ -e /dev/rtc ]; then 16 23 echo -n "Setting system clock: " 17 24 hwclock --hctosys --utc … … 20 27 21 28 if [ -x /sbin/fsck ]; then 22 echo "Starting fsck for root filesystem."23 fsck - T -C /29 echo "Starting fsck for local filesystems." 30 fsck -A -C -R -T -t nonfs,nosmbfs 24 31 if [ "$?" -gt 2 ]; then 25 echo "WARNING: Errors found while checking root filesystem."32 echo "WARNING: Errors found while checking filesystems." 26 33 echo "You can login as root now, the system will reboot after logout." 27 34 sulogin … … 32 39 reboot 33 40 else 34 echo -n "Checking root filesystem: "41 echo -n "Checking local filesystems: " 35 42 check_status 36 43 fi 37 44 fi 38 45 39 echo -n "Remounting root rw: "40 mount -o remount,rw /41 check_status42 43 echo -n "Mounting devpts: "44 mount /dev/pts45 check_status46 47 echo "Starting fsck for local filesystems."48 fsck -A -C -R -T -t nonfs,nosmbfs49 if [ "$?" -gt 2 ]; then50 echo "WARNING: Errors found while checking filesystems."51 echo "You can login as root now, the system will reboot after logout."52 sulogin53 reboot54 elif [ "$?" = "2" ]; then55 echo "NOTICE: System needs to be rebooted now."56 sleep 157 reboot58 else59 echo -n "Checking local filesystems: "60 check_status61 fi62 46 63 47 if [ -x /sbin/swapon ]; then … … 66 50 check_status 67 51 fi 52 53 echo -n "Remounting root rw: " 54 mount -o remount,rw / 55 check_status 68 56 69 57 echo -n "Setting hostname: " … … 94 82 fi 95 83 done 84 85 exit 0
Note:
See TracChangeset
for help on using the changeset viewer.