]> git.ipfire.org Git - people/stevee/network.git/commitdiff
wireless networks: Add priority to WPA supplicant configuration
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 18 Aug 2017 17:10:08 +0000 (19:10 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 18 Aug 2017 17:10:08 +0000 (19:10 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/functions/functions.wireless-networks

index d2a81ac0a0eb0f5cf6df42bd11e37cdc3bb3b3b3..2afb4def5304bba2deef93bf757a621b565ab5db 100644 (file)
@@ -411,6 +411,11 @@ wireless_network_to_wpa_supplicant() {
        print_indent 0 "# ${SSID}"
        print_indent 0 "network = {"
        print_indent 1 "ssid=\"${SSID}\""
+
+       # Priority
+       if isinteger PRIORITY; then
+               print_indent 1 "priority=${PRIORITY}"
+       fi
        print
 
        # Authentication