aboutsummaryrefslogtreecommitdiff
path: root/busybox/udhcpc.run
blob: 6c0973cfcca21bcfa4e1f8f9d40b60dde7743b4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
exec 2>&1
[ -f ./conf ] && . ./conf
if [ ! "$IFACE" ]; then
	for i in /sys/class/net/*; do
		[ -e $i/phy80211 ] && {
			IFACE=${i##*/}
			break
		}
	done
fi
[ "$IFACE" ] || exit 1
ip link set $IFACE up
exec udhcpc -f -i $IFACE