wok diff busybox/stuff/udhcp.script @ rev 10991
Up: bison to 2.5.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu Oct 13 02:13:42 2011 +0000 (2011-10-13) |
parents | 1ed09465c0ae |
children | 15a917692a49 |
line diff
1.1 --- a/busybox/stuff/udhcp.script Wed Jul 07 20:55:53 2010 +0200 1.2 +++ b/busybox/stuff/udhcp.script Thu Oct 13 02:13:42 2011 +0000 1.3 @@ -4,14 +4,19 @@ 1.4 1.5 [ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1 1.6 1.7 -[ "$subnet" == "255.255.255.255" ] && subnet="255.255.0.0" # qemu weirdness 1.8 +[ "$subnet" == "255.255.255.255" ] && subnet="255.255.0.0" # qemu/ipv6 weirdness 1.9 RESOLV_CONF="/etc/resolv.conf" 1.10 [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast" 1.11 [ -n "$subnet" ] && NETMASK="netmask $subnet" 1.12 1.13 +netfs() 1.14 +{ 1.15 + /bin/grep -qe '\(:.* /\|httpfs\)' /proc/mounts 1.16 +} 1.17 + 1.18 case "$1" in 1.19 deconfig) 1.20 - /sbin/ifconfig $interface 0.0.0.0 1.21 + netfs || /sbin/ifconfig $interface 0.0.0.0 1.22 for i in /etc/ipdown.d/*; do 1.23 [ -x $i ] && $i $interface 1.24 done