wok-4.x diff busybox/stuff/zcip.script @ rev 5120

Fix: gettext dep (issue 272)
author Christophe Lincoln <pankso@slitaz.org>
date Sat Mar 20 20:21:18 2010 +0100 (2010-03-20)
parents 72fa50265748
children
line diff
     1.1 --- a/busybox/stuff/zcip.script	Mon Jun 23 15:15:07 2008 +0000
     1.2 +++ b/busybox/stuff/zcip.script	Sat Mar 20 20:21:18 2010 +0100
     1.3 @@ -3,7 +3,15 @@
     1.4  [ "$1" = "init" ] && exit 0
     1.5  [ -n "$ip" ] || exit 1
     1.6  case "$1" in
     1.7 -config)		exec ifconfig $interface $ip netmask 255.255.0.0 up;;
     1.8 -deconfig)	exec ifconfig $interface down;;
     1.9 +config)		ifconfig $interface $ip netmask 255.255.0.0 up
    1.10 +		for i in /etc/ipup.d/*; do
    1.11 +			[ -e $i ] && . $i $interface $ip
    1.12 +		done
    1.13 +		;;
    1.14 +deconfig)	ifconfig $interface down
    1.15 +		for i in /etc/ipdown.d/*; do
    1.16 +			[ -e $i ] && . $i $interface
    1.17 +		done
    1.18 +		;;
    1.19  *)		exit 1;;
    1.20  esac