wok-4.x rev 4544
busybox/udhpc: fix /etc/ipup.d calls
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Dec 03 15:09:30 2009 +0100 (2009-12-03) |
parents | 8b287c42c709 |
children | c5efd45ce56e |
files | busybox/stuff/udhcp.script |
line diff
1.1 --- a/busybox/stuff/udhcp.script Tue Dec 01 16:27:26 2009 +0000 1.2 +++ b/busybox/stuff/udhcp.script Thu Dec 03 15:09:30 2009 +0100 1.3 @@ -12,7 +12,7 @@ 1.4 deconfig) 1.5 /sbin/ifconfig $interface 0.0.0.0 1.6 for i in /etc/ipdown.d/*; do 1.7 - [ -e $i ] && . $i $interface 1.8 + [ -x $i ] && $i $interface 1.9 done 1.10 ;; 1.11 1.12 @@ -37,8 +37,8 @@ 1.13 echo adding dns $i 1.14 echo nameserver $i >> $RESOLV_CONF 1.15 done 1.16 - for i in /etc/ipup.d/*; do 1.17 - [ -e $i ] && . $i $interface $ip $dns 1.18 + [ "$1" == "bound" ] && for i in /etc/ipup.d/*; do 1.19 + [ -x $i ] && $i $interface $ip $dns 1.20 done 1.21 ;; 1.22 esac