Changeset 2890


Ignore:
Timestamp:
Oct 12, 2011, 4:17:39 PM (7 years ago)
Author:
bruno
Message:
  • Improves logging in Die()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi/rootfs/sbin/init

    r2888 r2890  
    1010    trap SIGTERM
    1111    # Now kill all processes
     12    LogIt "Killing all processes"
    1213    kill -TERM -1
    1314    sync
     
    1617    sync
    1718    # Try to umount what we can again
     19    LogIt "Unmounting filesystems"
    1820    umount -a -d -r 2> /dev/null
    1921    # now reboot hard
     
    2123    # ctrlaltdel hard &
    2224    # reboot -f
     25    LogIt "Using SysRq to reboot"
    2326    echo s > /proc/sysrq-trigger
    2427    echo u > /proc/sysrq-trigger
    2528    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
    2732    while [ "1" == "1" ]; do
    2833        sleep 10
Note: See TracChangeset for help on using the changeset viewer.