Moving files from generic to defaults, since they are the defaults used globally.
[genkernel.git] / defaults / udhcpc.scripts
1 #!/bin/sh
2
3 case ${1} in
4         bound)
5                 [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast"
6                 [ -n "$subnet" ] && NETMASK="netmask $subnet"
7                 [ -n "$rootpath" ] && echo "$rootpath" > /rootpath
8                 #[ -n "$router" ] && echo "$router" > /router
9                 #[ -n "$dns" ] && echo "$dns" > /dns
10
11                 busybox ifconfig $interface $ip $BROADCAST $NETMASK
12         ;;
13         deconfig)
14                 busybox ifconfig $interface 0.0.0.0
15         ;;
16 esac
17