wok-undigest annotate 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 |
rev | line source |
---|---|
pascal@376 | 1 #!/bin/sh |
pascal@376 | 2 |
pascal@376 | 3 [ "$1" = "init" ] && exit 0 |
pascal@376 | 4 [ -n "$ip" ] || exit 1 |
pascal@376 | 5 case "$1" in |
pascal@376 | 6 config) ifconfig $interface $ip netmask 255.255.0.0 up |
pascal@376 | 7 for i in /etc/ipup.d/*; do |
pascal@376 | 8 [ -e $i ] && . $i $interface $ip |
pascal@376 | 9 done |
pascal@376 | 10 ;; |
pascal@376 | 11 deconfig) ifconfig $interface down |
pascal@376 | 12 for i in /etc/ipdown.d/*; do |
pascal@376 | 13 [ -e $i ] && . $i $interface |
pascal@376 | 14 done |
pascal@376 | 15 ;; |
pascal@376 | 16 *) exit 1;; |
pascal@376 | 17 esac |