Changeset aa2bc52f in freewrt for package/fwifupdown/files
- Timestamp:
- Jul 1, 2007, 6:28:53 PM (18 years ago)
- Children:
- de6433b
- Parents:
- ff38870
- Location:
- package/fwifupdown/files
- Files:
-
- 2 edited
-
ifupdown.sh (modified) (3 diffs)
-
main.sh (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
package/fwifupdown/files/ifupdown.sh
rff38870 raa2bc52f 47 47 while sleep 1; do 48 48 if test $j -gt 30; then 49 echo "bridge initialisation timed out" 49 mstate 1 50 mprint "bridge initialisation timed out" 50 51 rv=1 51 52 break … … 55 56 test -e "$x" || break 2 # no -> out of both loops 56 57 # print initialisation message, but once only 57 test $i = 1 || echo\58 test $i = 1 || mprint -n \ 58 59 "Waiting for bridge initialisation to finish" 59 60 i=1 … … 72 73 j=$(expr $j + 1) 73 74 done 74 test $i = 0 || echo done, took $j seconds 75 test $i = 0 || { 76 mstate $rv 77 mprint "took $j seconds" 78 } 75 79 76 mstate $rv 77 78 # vim:ts=8 80 # vim:ts=4 -
package/fwifupdown/files/main.sh
rff38870 raa2bc52f 141 141 } 142 142 143 config $RT_PREUP_PRINTING_OFF || [ "$METHOD" = "manual" ]&& return143 config $RT_PREUP_PRINTING_OFF && return 144 144 mup 145 145 } 146 146 147 147 main_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 149 151 then 150 152 is_up … … 190 192 } 191 193 192 config $RT_DOWN_PRINTING_OFF || [ "$METHOD" = "manual" ]&& return194 config $RT_DOWN_PRINTING_OFF && return 193 195 mdown 194 196 } 195 197 196 198 main_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 198 205 then 199 206 if [ $IFACE_STATE = "down" ]
Note:
See TracChangeset
for help on using the changeset viewer.
