mirror of
https://github.com/Doodle3D/doodle3d-firmware.git
synced 2024-12-22 02:53:49 +01:00
Disable handing out default route and DNS server over cable/eth dhcp.
This commit is contained in:
parent
b6a3426b07
commit
e94d238977
@ -77,15 +77,20 @@ $IPKG_INSTROOT/etc/init.d/wifibox start
|
|||||||
$IPKG_INSTROOT/etc/init.d/dhcpcheck enable
|
$IPKG_INSTROOT/etc/init.d/dhcpcheck enable
|
||||||
|
|
||||||
if [ -z "$IPKG_INSTROOT" ]; then
|
if [ -z "$IPKG_INSTROOT" ]; then
|
||||||
echo "Enabling wifi device..."
|
echo "Enabling and configuring wifi device..."
|
||||||
uci set wireless.@wifi-device[0].disabled=0
|
uci set wireless.@wifi-device[0].disabled=0
|
||||||
uci set wireless.radio0.country='NL'
|
uci set wireless.radio0.country='NL'
|
||||||
uci commit wireless; wifi
|
uci commit wireless; wifi
|
||||||
|
|
||||||
|
echo "Disabling default route and DNS server for lan network interface..."
|
||||||
|
uci set dhcp.lan.dhcp_option='3 6'
|
||||||
|
uci commit dhcp; /etc/init.d/dnsmasq reload
|
||||||
|
|
||||||
addFirewallNet
|
addFirewallNet
|
||||||
|
|
||||||
echo "Adding network interface 'wlan'..."
|
echo "Adding network interface 'wlan'..."
|
||||||
uci set network.wlan=interface; uci commit network; /etc/init.d/network reload
|
uci set network.wlan=interface
|
||||||
|
uci commit network; /etc/init.d/network reload
|
||||||
|
|
||||||
else
|
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
|
||||||
@ -102,6 +107,8 @@ else
|
|||||||
uci set wireless.radio0.country='NL'
|
uci set wireless.radio0.country='NL'
|
||||||
# TODO: add firewall net
|
# TODO: add firewall net
|
||||||
uci set network.wlan=interface
|
uci set network.wlan=interface
|
||||||
|
|
||||||
|
uci set dhcp.lan.dhcp_option='3 6'
|
||||||
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