Changeset aa2bc52f in freewrt for package/fwifupdown/files


Ignore:
Timestamp:
Jul 1, 2007, 6:28:53 PM (18 years ago)
Author:
Christian Fischer <spaetzle@…>
Children:
de6433b
Parents:
ff38870
Message:
  • updated wl-broadcom script to work with latest wl this is untested but the old one doesn't work and i have no time to test next days
  • removed output noise from ifup, used mprint instead of echo
  • updated manual stuff, from now manual doesn't configure iface but sets it up or down
  • removed bridge shutdown if bridge init fails not to 100 percent complete initialized bridge is better than having no network, the normal user doesn't have serial access

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

Location:
package/fwifupdown/files
Files:
2 edited

Legend:

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

    rff38870 raa2bc52f  
    4747while sleep 1; do
    4848        if test $j -gt 30; then
    49                 echo "bridge initialisation timed out"
     49                mstate 1
     50                mprint "bridge initialisation timed out"
    5051                rv=1
    5152                break
     
    5556                test -e "$x" || break 2         # no -> out of both loops
    5657                # print initialisation message, but once only
    57                 test $i = 1 || echo \
     58                test $i = 1 || mprint -n \
    5859                    "Waiting for bridge initialisation to finish"
    5960                i=1
     
    7273        j=$(expr $j + 1)
    7374done
    74 test $i = 0 || echo done, took $j seconds
     75test $i = 0 || {
     76        mstate $rv
     77        mprint "took $j seconds"
     78}
    7579
    76 mstate $rv
    77 
    78 # vim:ts=8
     80# vim:ts=4
  • package/fwifupdown/files/main.sh

    rff38870 raa2bc52f  
    141141        }
    142142
    143         config $RT_PREUP_PRINTING_OFF || [ "$METHOD" = "manual" ] && return
     143        config $RT_PREUP_PRINTING_OFF && return
    144144        mup
    145145}
    146146
    147147main_up() {
    148         if ! config $RT_UP_IFUP_CHECK_OFF && [ "$METHOD" != "manual" ]
     148        [ x"$METHOD" = x"manual" ] && ip link set up dev $IFACE
     149
     150        if ! config $RT_UP_IFUP_CHECK_OFF
    149151        then
    150152                is_up
     
    190192        }
    191193
    192         config $RT_DOWN_PRINTING_OFF || [ "$METHOD" = "manual" ] && return
     194        config $RT_DOWN_PRINTING_OFF && return
    193195        mdown
    194196}
    195197
    196198main_postdown() {
    197         if ! config $RT_POSTDOWN_IFDOWN_CHECK_OFF && [ "$METHOD" != "manual" ]
     199        [ x"$METHOD" = x"manual" ] && {
     200                ip addr flush dev %ifac
     201                ip link set down dev $IFACE
     202        }
     203
     204        if ! config $RT_POSTDOWN_IFDOWN_CHECK_OFF
    198205        then
    199206                if [ $IFACE_STATE = "down" ]
Note: See TracChangeset for help on using the changeset viewer.