aboutsummaryrefslogtreecommitdiff
blob: a108a8b77a29f0f029e84f6e019583331f94eaa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

case ${1} in
	bound)
		[ -n "$broadcast" ] && BROADCAST="broadcast $broadcast"
		[ -n "$subnet" ] && NETMASK="netmask $subnet"
		[ -n "$rootpath" ] && echo "$rootpath" > /rootpath
		#[ -n "$router" ] && echo "$router" > /router
		#[ -n "$dns" ] && echo "$dns" > /dns

		busybox ifconfig $interface $ip $BROADCAST $NETMASK
	;;
	deconfig)
		busybox ifconfig $interface 0.0.0.0
	;;
esac