# HG changeset patch # User Pascal Bellard # Date 1331900496 -3600 # Node ID 15a917692a49b77fec52684bffba62b619a5d59e # Parent 14d8e207bf146d4fa2d2a96714e32407ad2df20f busybox/udhcp.script: add nfs support diff -r 14d8e207bf14 -r 15a917692a49 busybox/stuff/udhcp.script --- a/busybox/stuff/udhcp.script Thu Mar 15 00:26:36 2012 +0100 +++ b/busybox/stuff/udhcp.script Fri Mar 16 13:21:36 2012 +0100 @@ -11,7 +11,7 @@ netfs() { - /bin/grep -qe '\(:.* /\|httpfs\)' /proc/mounts + /bin/grep -qe '\(:.* /\|httpfs\|nfs\|smbfs\|ncp\|coda\)' /proc/mounts } case "$1" in @@ -27,13 +27,13 @@ if [ -n "$router" ] ; then echo "deleting routers" - while route del default gw 0.0.0.0 dev $interface ; do + while route del default gw 0.0.0.0 dev $interface 2>/dev/null; do : done metric=0 for i in $router ; do - route add default gw $i dev $interface metric $((metric++)) + route add default gw $i dev $interface metric $((metric++)) 2>/dev/null done fi