Changeset 3210 for branches/3.2


Ignore:
Timestamp:
Dec 10, 2013, 8:50:32 AM (6 years ago)
Author:
bruno
Message:
  • Avoid to execute an empty pre variable as a pre script
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi/rootfs/etc/init.d/rcS

    r3203 r3210  
    10531053    LogIt "Calling post-init"
    10541054    # start-netfs moved it under /tmp as the NFS share is already unmounted
    1055     if [ "`echo $pre | grep -E '^/tmp/isodir'`" ]; then
     1055    if [ _"$pre" != _"" ] && [ "`echo $pre | grep -E '^/tmp/isodir'`" ]; then
    10561056        pre=`echo $pre | sed 's|^/tmp/isodir|/tmp|'`
    10571057    fi
    1058     if [ -x $pre ]; then
     1058    if [ _"$pre" != _"" ] && [ -x $pre ]; then
    10591059        echo "Executing preliminary script $pre"
    10601060        LogIt "Executing preliminary script $pre"
     
    10681068if [ "`grep -i "post=" /proc/cmdline`" ] ; then
    10691069    for i in `cat /proc/cmdline` ; do
    1070         echo $i | grep -qi post= && post=`echo $i | cut -d= -f2`
     1070        echo $i | grep -qi post= && post=`echo $i | cut -d= -f2`
    10711071    done
    10721072    # start-netfs moved it under /tmp as the NFS share is already unmounted
Note: See TracChangeset for help on using the changeset viewer.