summaryrefslogtreecommitdiffstats
path: root/usr/lib
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2013-07-06 01:28:24 +0200
committermakefu <github@syntax-fehler.de>2013-07-06 01:28:24 +0200
commit5c89d8857a193ddc6cc28a8f1f0001ea552f2c4d (patch)
tree4afc768ad930b33d0e89b42d5137549c30c19b8a /usr/lib
parentfee2556cbbe8bfd3ac0e965baa36c39386c8605a (diff)
add support for udhcpc
which is used by openwrt
Diffstat (limited to 'usr/lib')
-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 a9e30739..eb317b84 100644
--- a/usr/lib/autowifi/lib/network
+++ b/usr/lib/autowifi/lib/network
@@ -27,7 +27,9 @@ ip_start(){
elif exists dhclient; then
dhclient -x $interface
dhclient $interface
+ elif exists udhcpc; then
+ udhcpc -n -i $interface
fi ;;
- *) echo "do not know ip starter $1";;
+ *) echo "do not know ip starter $1" >&2;;
esac
}