# HG changeset patch # User Pascal Bellard <pascal.bellard@slitaz.org> # Date 1259849370 -3600 # Node ID bc79e85a156103f378917bbcdf8f9e5da32bfd9b # Parent 8b287c42c70929218c3a7f3fac1edf9ad53f941d busybox/udhpc: fix /etc/ipup.d calls diff -r 8b287c42c709 -r bc79e85a1561 busybox/stuff/udhcp.script --- a/busybox/stuff/udhcp.script Tue Dec 01 16:27:26 2009 +0000 +++ b/busybox/stuff/udhcp.script Thu Dec 03 15:09:30 2009 +0100 @@ -12,7 +12,7 @@ deconfig) /sbin/ifconfig $interface 0.0.0.0 for i in /etc/ipdown.d/*; do - [ -e $i ] && . $i $interface + [ -x $i ] && $i $interface done ;; @@ -37,8 +37,8 @@ echo adding dns $i echo nameserver $i >> $RESOLV_CONF done - for i in /etc/ipup.d/*; do - [ -e $i ] && . $i $interface $ip $dns + [ "$1" == "bound" ] && for i in /etc/ipup.d/*; do + [ -x $i ] && $i $interface $ip $dns done ;; esac