mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2024-12-22 19:13:49 +01:00
Hack to auto-configure wifibox into AP mode at first boot
This commit is contained in:
parent
da0862d2f9
commit
35f5a4c02e
@ -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
|
# 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
|
cat <<-EOM >> $IPKG_INSTROOT/etc/uci-defaults/setup-wifibox.sh
|
||||||
uci set system.@system[0].hostname=wifibox
|
uci set system.@system[0].hostname=wifibox
|
||||||
|
uci set system.@system[0].log_size=64
|
||||||
uci set network.lan.ipaddr=192.168.5.1
|
uci set network.lan.ipaddr=192.168.5.1
|
||||||
echo -e "beta\nbeta" | passwd root
|
echo -e "beta\nbeta" | passwd root
|
||||||
|
|
||||||
uci set wireless.@wifi-device[0].disabled=0
|
uci set wireless.@wifi-device[0].disabled=0
|
||||||
# TODO: add firewall net
|
# TODO: add firewall net
|
||||||
uci set network.wlan=interface
|
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
|
EOM
|
||||||
|
|
||||||
echo "WARNING: WiFiBox network configuration can only be fully prepared when installing on real device"
|
echo "WARNING: WiFiBox network configuration can only be fully prepared when installing on real device"
|
||||||
|
Loading…
Reference in New Issue
Block a user