]> git.ipfire.org Git - people/ms/network.git/commitdiff
Forgot to move one line
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 19 Aug 2017 09:33:30 +0000 (09:33 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 19 Aug 2017 09:33:30 +0000 (09:33 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/functions/functions.wireless-networks
src/functions/functions.wpa_supplicant

index b3db4859287bc395285855120ee6eda83aeabba6..d84bd2651bb12e2f573826e334e427aa4138909e 100644 (file)
@@ -341,8 +341,6 @@ wireless_networks_write_wpa_supplicant_configuration() {
        # Ensure we can write the file
        make_parent_directory "${file}"
 
-       local country="$(wireless_get_reg_domain)"
-
        (
                # Write a config header
                wpa_supplicant_config_header
index bc82a40ce775c42f64a6dd53040b91407d98278e..0da38ccd46bb908fb8067a3de325ae38f9ba999d 100644 (file)
@@ -28,6 +28,7 @@ wpa_supplicant_config_header() {
        print "ctrl_interface=${WPA_SUPPLICANT_SOCKET_DIR}"
 
        # Honour country
+       local country="$(wireless_get_reg_domain)"
        if isset country; then
                print "country=${country}"
        fi