wok-undigest diff busybox/stuff/zcip.script @ rev 543
busybox/httpd: check system passwords (if FEATURE_HTTPD_AUTH_MD5)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 05 19:54:07 2011 +0100 (2011-11-05) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/busybox/stuff/zcip.script Sat Nov 05 19:54:07 2011 +0100 1.3 @@ -0,0 +1,17 @@ 1.4 +#!/bin/sh 1.5 + 1.6 +[ "$1" = "init" ] && exit 0 1.7 +[ -n "$ip" ] || exit 1 1.8 +case "$1" in 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