Changeset 292c832 in bootscripts-embedded for clfs/rc.d/shutdown
- Timestamp:
- Jan 30, 2011, 10:13:21 AM (14 years ago)
- Branches:
- master
- Children:
- 73ee2a6
- Parents:
- 5d96f6a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
clfs/rc.d/shutdown
r5d96f6a r292c832 10 10 echo 11 11 12 12 13 echo "Starting stop scripts." 13 14 14 for i in /etc/rc.d/stop/*; do 15 if [ -x $i ]; then 16 $i stop 17 fi 15 for i in /etc/rc.d/stop/* 16 do 17 if [ -x $i ]; then 18 $i stop 19 fi 18 20 done 19 21 20 echo -n "Syncing hardware clock to system clock:" 21 hwclock --systohc --utc 22 check_status 22 if [ -x /sbin/hwclock ] && [ -e /dev/rtc ]; then 23 echo -n "Syncing hardware clock to system clock:" 24 hwclock --systohc --utc 25 check_status 26 fi 23 27 24 echo -n "Disabling swap space: " 25 swapoff -a 26 check_status 28 if [ -x /sbin/swapoff ]; then 29 echo -n "Disabling swap space: " 30 swapoff -a 31 check_status 32 fi 27 33 28 34 echo -n "Syncing all filesystems: " … … 32 38 echo -n "Unmounting all filesystems: " 33 39 umount -a -r 40
Note:
See TracChangeset
for help on using the changeset viewer.