1
0
mirror of git://projects.qi-hardware.com/openwrt-packages.git synced 2024-07-03 10:53:17 +03:00

milkymist-TLWR703: using ifup instead of wifi command

This commit is contained in:
Xiangfu 2012-07-04 20:21:14 +08:00
parent ac6156fde2
commit 5c7b9840ba

View File

@ -27,11 +27,8 @@ if [ "$1" == "set" ] && [ "$#" == "4" ]; then
uci set wireless.@wifi-iface[0].encryption=$4
uci commit wireless
wifi up > /dev/null 2>&1
udhcpc -i wlan0 -b > /dev/null 2>&1
ifup wwan
ifconfig wlan0 | grep "inet addr"
exit 0
fi