aboutsummaryrefslogtreecommitdiff
path: root/busybox/udhcpc.run
blob: 5ab073440ae2ab951b8f20bd017c1b9f8b430e09 (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 env DNS="$DNS" udhcpc -f -i $IFACE