On 02/22/2016 02:31 PM, Daniel Gnoutcheff wrote:
> Hey,
> 
> I've been finding that when I boot a fresh freedombox with 0.7 images
> and with a WiFi dongle installed, no WiFi AP is created.

I ended up editing 05_network to get this working. Honestly, I can't
understand how the script could have ever worked, except maybe by accident.

Patch attached, HTH!

Later,
Daniel
--- 05_network.orig	2015-12-12 16:56:51.000000000 -0500
+++ 05_network	2016-02-22 18:40:50.900337731 -0500
@@ -14,9 +14,9 @@
 }
 
 function configure-regular-interface {
-    interface="$1"
-    zone="$2"
-    connection_name="FreedomBox WAN"
+    local interface="$1"
+    local zone="$2"
+    local connection_name="FreedomBox WAN"
 
     # Create n-m connection for a regular interface
     nmcli con add con-name "$connection_name" ifname "$interface" type ethernet
@@ -27,8 +27,8 @@
 }
 
 function configure-shared-interface {
-    interface="$1"
-    connection_name="FreedomBox LAN $interface"
+    local interface="$1"
+    local connection_name="FreedomBox LAN $interface"
 
     # Create n-m connection for eth1
     nmcli con add con-name "$connection_name" ifname "$interface" type ethernet
@@ -47,15 +47,15 @@
 }
 
 function configure-wireless-interface {
-    interface="$1"
-    connection_name="FreedomBox $interface"
-    ssid="FreedomBox$interface"
-    secret="freedombox123"
+    local interface="$1"
+    local connection_name="FreedomBox $interface"
+    local ssid="FreedomBox$interface"
+    local secret="freedombox123"
 
-    configure-shared-interface "$interface"
     nmcli con add con-name "$connection_name" ifname "$interface" type wifi ssid "$ssid"
     nmcli con modify "$connection_name" connection.autoconnect TRUE
     nmcli con modify "$connection_name" connection.zone internal
+    nmcli con modify "$connection_name" ipv4.method shared
     nmcli con modify "$connection_name" wifi.mode ap
     nmcli con modify "$connection_name" wifi-sec.key-mgmt wpa-psk
     nmcli con modify "$connection_name" wifi-sec.psk "$secret"
@@ -64,9 +64,9 @@
 }
 
 function multi-wired-setup {
-    first_interface="$1"
+    local first_interface="$1"
     shift
-    remaining_interfaces="$@"
+    local remaining_interfaces="$@"
 
     configure-regular-interface "$first_interface" external
 
@@ -77,7 +77,7 @@
 }
 
 function one-wired-setup {
-    interface="$1"
+    local interface="$1"
 
     case $NO_OF_WIRELESS_IFACES in
         "0")
@@ -90,7 +90,7 @@
 }
 
 function wireless-setup {
-    interfaces="$@"
+    local interfaces="$@"
 
     for interface in $interfaces
     do

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Freedombox-discuss mailing list
Freedombox-discuss@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/freedombox-discuss

Reply via email to