blob: 6f5325d64041727bd5ed4bcac557146ad5c8dbd1 [file] [log] [blame]
#!/bin/sh
opkg install /ipks/*
# The script below should be run after uci for wireless is available.
while ! (uci show wireless | grep wireless) ; do sleep 1; echo "wait for wlan" > /dev/kmsg; done
uci -q batch << EOI
set network.lan.proto='static'
set network.lan.ipaddr='192.168.96.2'
set network.lan.netmask='255.255.255.0'
set network.lan.ip6assign='30'
set network.lan.gateway='192.168.96.1'
set network.lan.dns='8.8.8.8'
set network.lan.broadcast='192.168.96.3'
commit network
set wireless.radio0.disabled='0'
set wireless.default_radio0.ssid='AndroidWifi'
commit wireless
EOI