Changeset 2890 in MondoRescue for branches/2.2.9/mindi/rootfs
- Timestamp:
- Oct 12, 2011, 4:17:39 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi/rootfs/sbin/init
r2888 r2890 10 10 trap SIGTERM 11 11 # Now kill all processes 12 LogIt "Killing all processes" 12 13 kill -TERM -1 13 14 sync … … 16 17 sync 17 18 # Try to umount what we can again 19 LogIt "Unmounting filesystems" 18 20 umount -a -d -r 2> /dev/null 19 21 # now reboot hard … … 21 23 # ctrlaltdel hard & 22 24 # reboot -f 25 LogIt "Using SysRq to reboot" 23 26 echo s > /proc/sysrq-trigger 24 27 echo u > /proc/sysrq-trigger 25 28 echo b > /proc/sysrq-trigger 26 # That script should never end 29 30 # if we reach that point that's odd 31 # That script should never end as the kernel crashes otherwise 27 32 while [ "1" == "1" ]; do 28 33 sleep 10
Note:
See TracChangeset
for help on using the changeset viewer.