From 35f5a4c02ecd30d5e56a7addad9b43246b10a00a Mon Sep 17 00:00:00 2001 From: Wouter R Date: Fri, 16 Aug 2013 22:11:09 +0200 Subject: [PATCH] Hack to auto-configure wifibox into AP mode at first boot --- post-install.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/post-install.sh b/post-install.sh index b9bc934..8b30694 100644 --- a/post-install.sh +++ b/post-install.sh @@ -78,12 +78,16 @@ else # Create a script to setup the system as wifibox, it will be deleted after it has been run, except if it returns > 0 cat <<-EOM >> $IPKG_INSTROOT/etc/uci-defaults/setup-wifibox.sh uci set system.@system[0].hostname=wifibox + uci set system.@system[0].log_size=64 uci set network.lan.ipaddr=192.168.5.1 echo -e "beta\nbeta" | passwd root uci set wireless.@wifi-device[0].disabled=0 # TODO: add firewall net uci set network.wlan=interface + + #TEMP: quick hack to automatically configure AP mode + /usr/share/lua/wifibox/script/d3dapi r=POST p=/network/openap EOM echo "WARNING: WiFiBox network configuration can only be fully prepared when installing on real device"