wok-4.x rev 12152

busybox/udhcp.script: add nfs support
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 16 13:21:36 2012 +0100 (2012-03-16)
parents 14d8e207bf14
children d83d24e3aa16
files busybox/stuff/udhcp.script
line diff
     1.1 --- a/busybox/stuff/udhcp.script	Thu Mar 15 00:26:36 2012 +0100
     1.2 +++ b/busybox/stuff/udhcp.script	Fri Mar 16 13:21:36 2012 +0100
     1.3 @@ -11,7 +11,7 @@
     1.4  
     1.5  netfs()
     1.6  {
     1.7 -	/bin/grep -qe '\(:.* /\|httpfs\)' /proc/mounts
     1.8 +	/bin/grep -qe '\(:.* /\|httpfs\|nfs\|smbfs\|ncp\|coda\)' /proc/mounts
     1.9  }
    1.10  
    1.11  case "$1" in
    1.12 @@ -27,13 +27,13 @@
    1.13  
    1.14  		if [ -n "$router" ] ; then
    1.15  			echo "deleting routers"
    1.16 -			while route del default gw 0.0.0.0 dev $interface ; do
    1.17 +			while route del default gw 0.0.0.0 dev $interface 2>/dev/null; do
    1.18  				:
    1.19  			done
    1.20  
    1.21  			metric=0
    1.22  			for i in $router ; do
    1.23 -				route add default gw $i dev $interface metric $((metric++))
    1.24 +				route add default gw $i dev $interface metric $((metric++)) 2>/dev/null
    1.25  			done
    1.26  		fi
    1.27