Changeset 2893 in MondoRescue for branches/2.2.9/mindi/rootfs/etc/init.d
- Timestamp:
- Oct 18, 2011, 12:09:41 PM (12 years ago)
- Location:
- branches/2.2.9/mindi/rootfs/etc/init.d
- Files:
-
- 1 added
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi/rootfs/etc/init.d/rcS
r2892 r2893 9 9 CaughtSoftReset() { 10 10 trap SIGTERM 11 # Now kill all processes 12 LogIt "Killing all processes" 13 kill -TERM -1 14 sync 15 sleep 1 16 kill -KILL -1 17 sync 18 # Try to umount what we can again 19 LogIt "Unmounting filesystems" 20 umount -a -d -r 2> /dev/null 21 # now reboot hard 22 # This doesn't work nor does reboot 23 # ctrlaltdel hard & 24 # reboot -f 25 LogIt "Using SysRq to reboot" 26 echo s > /proc/sysrq-trigger 27 echo u > /proc/sysrq-trigger 28 echo b > /proc/sysrq-trigger 29 30 # if we reach that point that's odd 31 # That script should never end as the kernel crashes otherwise 32 while [ "1" == "1" ]; do 33 sleep 10 34 done 11 12 reboot 35 13 } 36 14
Note:
See TracChangeset
for help on using the changeset viewer.