Ignore:
Timestamp:
Sep 2, 2007, 2:45:09 AM (13 years ago)
Author:
Bruno Cornec
Message:

Fix #194

File:
1 edited

Legend:

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

    r1610 r1612  
    573573    LogIt "I think this CD/floppy has no archives on it."
    574574fi
    575 echo -en "Type 'exit' to reboot the PC\n"
    576 umount /mnt/cdrom 2> /dev/null
    577 mount / -o rw,remount > /dev/null 2> /dev/null
    578 LogIt "Launching Shell"
    579 sh
     575if grep "RESTORE" /proc/cmdline > /dev/null 2> /dev/null ; then
     576    echo "Rebooting in 10 seconds automatically as per reboot order"
     577    echo -en "Press ^C to interrupt if you have to ..."
     578    for i in 1 2 3 4 5 6 7 8 9 10 ; do
     579        sleep 1
     580        echo -en "."
     581    done
     582    echo "Boom."
     583    sleep 1
     584else
     585    echo -en "Type 'exit' to reboot the PC\n"
     586    umount /mnt/cdrom 2> /dev/null
     587    mount / -o rw,remount > /dev/null 2> /dev/null
     588    LogIt "Launching Shell"
     589    sh
     590fi
    580591CaughtSoftReset
    581592# reboot
Note: See TracChangeset for help on using the changeset viewer.