wok view busybox/stuff/zcip.script @ rev 1041

busybox: back to 1.10.3 (cpio in 1.11.0 can't unpack rootfs.gz)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 11 19:36:20 2008 +0000 (2008-07-11)
parents
children b46a95b3d2ee
line source
1 #!/bin/sh
3 [ "$1" = "init" ] && exit 0
4 [ -n "$ip" ] || exit 1
5 case "$1" in
6 config) exec ifconfig $interface $ip netmask 255.255.0.0 up;;
7 deconfig) exec ifconfig $interface down;;
8 *) exit 1;;
9 esac