Changeset 2249 in MondoRescue for branches/2.2.9/mindi/rootfs/sbin/init


Ignore:
Timestamp:
Jul 5, 2009, 2:42:21 AM (15 years ago)
Author:
Bruno Cornec
Message:

r3161@localhost: bruno | 2009-07-03 14:31:21 +0200

  • Adds support for a new option script at boot prompt
File:
1 edited

Legend:

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

    r2212 r2249  
    831831    LogIt "I think this media has no archives on it."
    832832fi
     833if ! [ "`grep -i "script=" /proc/cmdline`" ] ; then
     834    for i in `cat /proc/cmdline` ; do
     835        echo $i | grep -qi script= && script=`echo $i | cut -d= -f2`
     836    done
     837    if [ -x $script ]; then
     838        echo "Executing final script $script"
     839        LogIt "Executing final script $script"
     840        $script
     841    fi
     842fi
    833843if grep "RESTORE" /proc/cmdline > /dev/null 2> /dev/null ; then
    834844    echo "Rebooting in 10 seconds automatically as per reboot order"
Note: See TracChangeset for help on using the changeset viewer.