summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'usr')
-rw-r--r--usr/lib/autowifi/lib/network4
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