0
0
mirror of https://github.com/Doodle3D/doodle3d-firmware.git synced 2024-12-22 19:13:49 +01:00

Minor fixes.

This commit is contained in:
Wouter R 2013-08-16 21:44:54 +02:00
parent 72afef93bd
commit 56f6815bc1
2 changed files with 3 additions and 3 deletions

View File

@ -63,6 +63,8 @@ fi
### Finally make sure basic configuration is set correctly ### Finally make sure basic configuration is set correctly
/etc/init.d/wifibox enable
if [ -z "$IPKG_INSTROOT" ]; then if [ -z "$IPKG_INSTROOT" ]; then
echo "Enabling wifi device..." echo "Enabling wifi device..."
uci set wireless.@wifi-device[0].disabled=0; uci commit wireless; wifi uci set wireless.@wifi-device[0].disabled=0; uci commit wireless; wifi
@ -72,8 +74,6 @@ if [ -z "$IPKG_INSTROOT" ]; then
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
/etc/init.d/wifibox enable
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
cat <<-EOM >> $IPKG_INSTROOT/etc/uci-defaults/setup-wifibox.sh cat <<-EOM >> $IPKG_INSTROOT/etc/uci-defaults/setup-wifibox.sh

View File

@ -150,7 +150,7 @@ end
--[[ Add/remove DHCP pool for wireless net ]] --[[ Add/remove DHCP pool for wireless net ]]
function reconf.dhcppool_add(dirtyList) function reconf.dhcppool_add(dirtyList)
uci:set('dhcp', wifi.getDeviceName(), 'dhcp') --create section uci:set('dhcp', wifi.NET, 'dhcp') --create section
M.uciTableSet('dhcp', wifi.NET, { M.uciTableSet('dhcp', wifi.NET, {
interface = wifi.NET, interface = wifi.NET,
start = '100', start = '100',