Changeset 2329 in MondoRescue for branches/2.2.10/mindi/rootfs/sbin/post-init


Ignore:
Timestamp:
Aug 18, 2009, 3:20:46 PM (15 years ago)
Author:
Bruno Cornec
Message:

r3340@localhost: bruno | 2009-08-12 00:17:29 +0200
Improve portability by defining all cmdline usage in 1 include (/tmp for FreeBSD and /proc fior LInux). Also doing tht for scripts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mindi/rootfs/sbin/post-init

    r2098 r2329  
    55#------------------------------------------------------------
    66
    7 
    87sleep 1
    98
     
    1110cat /tmp/mountlist.txt >> $LOGFILE
    1211
    13 iso=`grep iso /proc/cmdline`
    14 nuke=`grep nuke /proc/cmdline`
     12iso=`grep iso $CMDLINE`
     13nuke=`grep nuke $CMDLINE`
    1514if [ "$nuke" = "" ] ; then
    16     nuke=`grep -i "RESTORE " /proc/cmdline`
     15    nuke=`grep -i "RESTORE " $CMDLINE`
    1716fi
    18 expert=`grep expert /proc/cmdline`
    19 compare=`grep compare /proc/cmdline`
    20 interactive=`grep interactive /proc/cmdline`
    21 pxe=`grep pxe /proc/cmdline`
     17expert=`grep expert $CMDLINE`
     18compare=`grep compare $CMDLINE`
     19interactive=`grep interactive $CMDLINE`
     20pxe=`grep pxe $CMDLINE`
    2221[ "$interactive" ]  && expert=""; # in case 'expert' crops up somewhere
    2322if which mondorestore > /dev/null 2> /dev/null ; then
     
    6261fi
    6362
    64 if [ "`grep -i 'debug' /proc/cmdline`" ]; then
     63if [ "`grep -i 'debug' $CMDLINE`" ]; then
    6564    mondoopt="$mondoopt -K 99"
    6665fi
Note: See TracChangeset for help on using the changeset viewer.