wok-6.x rev 10926

busybox/udhcp.script: add netfs support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 17 15:47:07 2011 +0200 (2011-08-17)
parents 6af9dc0d1c19
children f51ffad7db07
files busybox/stuff/udhcp.script reiser4progs-dev/receipt
line diff
     1.1 --- a/busybox/stuff/udhcp.script	Sun Aug 14 14:58:48 2011 +0200
     1.2 +++ b/busybox/stuff/udhcp.script	Wed Aug 17 15:47:07 2011 +0200
     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
     2.1 --- a/reiser4progs-dev/receipt	Sun Aug 14 14:58:48 2011 +0200
     2.2 +++ b/reiser4progs-dev/receipt	Wed Aug 17 15:47:07 2011 +0200
     2.3 @@ -8,6 +8,8 @@
     2.4  WEB_SITE="http://www.kernel.org/"
     2.5  WANTED="reiser4progs"
     2.6  
     2.7 +DEPENDS="libaal-dev"
     2.8 +
     2.9  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.10  genpkg_rules()
    2.11  {