Changeset 29fd416 in freewrt for package/fwifupdown/files/main.sh


Ignore:
Timestamp:
Apr 23, 2007, 8:52:18 PM (19 years ago)
Author:
Dirk Nehring <dnehring@…>
Children:
f5c6c2a
Parents:
c85b6b0
Message:

Space and Tab cleanup, set default to no for now until everything is implemented and tested.

git-svn-id: svn://www.freewrt.org/trunk/freewrt@2425 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package/fwifupdown/files/main.sh

    rc85b6b0 r29fd416  
    2424__ifupdown() {
    2525        local environ=$(cat $ENVFILE)
    26        
     26
    2727        IFUPDOWN_ENV=$(echo -n $IFUPDOWN_ENV|sed 's/\(MDENT=\)[^ ]*[[:space:]]*//g';\
    2828                echo " MDENT=$MDENT"; echo -e " MOFFSET=$MOFFSET") busybox $@
     
    6161        local lastmatch=""
    6262
    63         # get submode from calling hook script 
     63        # get submode from calling hook script
    6464        SUBMODE=$(dirname $0|sed '{ s/\(.*\/\)*//; s/\.d$//}')
    6565
     
    6767        if ! [ -f "$ENVFILE" ]
    6868        then
    69                 [ -d $(dirname $ENVFILE) ] || mkdir -p $(dirname $ENVFILE)     
     69                [ -d $(dirname $ENVFILE) ] || mkdir -p $(dirname $ENVFILE)
    7070                echo "MDENT=0" >> $ENVFILE
    7171                echo "LASTLOG=0" >> $ENVFILE
     
    178178        if-pre-up)
    179179                config $CFG_START_PRINTING_OFF || mstart
    180                
     180
    181181                if ! config $CFG_PREUP_IFUP_CHECK_OFF && is_up
    182182                then
     
    216216                        fi
    217217                fi
    218                
     218
    219219                if_up 2>&-
    220220                retval=$?
     
    234234                                mdown
    235235                                mstate 1
    236                                 minfo "Can not bringing down, interface $IFACE is down." 
     236                                minfo "Can not bringing down, interface $IFACE is down."
    237237                        fi
    238238                        exit 1
     
    265265                        fi
    266266                fi
    267        
     267
    268268                if_postdown 2>&-
    269269                retval=$?
     
    275275        ;;
    276276esac
    277        
     277
    278278# vim:ts=4
Note: See TracChangeset for help on using the changeset viewer.