diff options
author | makefu <github@syntax-fehler.de> | 2013-07-06 01:51:19 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2013-07-06 01:51:19 +0200 |
commit | 3541ac3154d5e23583054b2ef40a8d918203a33d (patch) | |
tree | 3a72790b914cdc7ac021b64b5ca17e7feadca82e /usr/lib/autowifi | |
parent | bdfe4a9e0a9728448c44bc535f966fdd5b102f58 (diff) |
update support for udhpc
Diffstat (limited to 'usr/lib/autowifi')
-rw-r--r-- | usr/lib/autowifi/lib/network | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/lib/autowifi/lib/network b/usr/lib/autowifi/lib/network index 2d10f3e0..820ccad6 100644 --- a/usr/lib/autowifi/lib/network +++ b/usr/lib/autowifi/lib/network @@ -30,7 +30,9 @@ ip_start(){ dhclient -x $interface dhclient $interface elif exists udhcpc; then - udhcpc -n -i $interface + PIDFILE=/var/run/udhcpc-${interface}.pid + [ -e $PIDFILE ] && kill `cat $PIDFILE` ||: + udhcpc -n -i $interface -s /lib/netifd/dhcp.script -C -p /var/run/udhcpc-${interface}.pid fi ;; *) echo "do not know ip starter $1" >&2;; esac |