summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBraden <archbugs@dabrado.net>2012-07-26 15:43:17 +0200
committerJouke Witteveen <j.witteveen@gmail.com>2012-07-26 15:43:17 +0200
commitfd096b445062eea02c20595ed863ce891b313779 (patch)
tree07af938fb792763763fe7d17f8075b138166e3e3
parent018fd30fdefd349fde7fdbd355900f3f8bda0b92 (diff)
downloadnetctl-fd096b445062eea02c20595ed863ce891b313779.tar.gz
netctl-fd096b445062eea02c20595ed863ce891b313779.tar.xz
Add a priority option to wpa config (FS#30737)
Pass a priority parameter to wpa_supplicant (if specified). This is useful for net-auto-wireless.
-rw-r--r--docs/netcfg-profiles.5.txt3
-rw-r--r--src/8021x7
2 files changed, 9 insertions, 1 deletions
diff --git a/docs/netcfg-profiles.5.txt b/docs/netcfg-profiles.5.txt
index daf2eb8..0d8b3f3 100644
--- a/docs/netcfg-profiles.5.txt
+++ b/docs/netcfg-profiles.5.txt
@@ -204,6 +204,9 @@ Options
+SCAN+ (optional)::
`yes'/`no'. Scan for a wireless network rather than blindly attempting to
connect. Hidden SSID networks do not appear in a scan.
++PRIORITY+ (optional)::
+ Priority group for the network. The matched network with the highest
+ priority will be selected. Defaults to 0.
WPA options
^^^^^^^^^^^
diff --git a/src/8021x b/src/8021x
index ec68c4f..fcde131 100644
--- a/src/8021x
+++ b/src/8021x
@@ -269,7 +269,12 @@ make_wpa_config() {
# Hidden SSID
if checkyesno ${HIDDEN:-no}; then
- echo "scan_ssid=1"
+ echo "scan_ssid=1"
+ fi
+
+ # Priority group for the network
+ if [[ -n "$PRIORITY" ]]; then
+ echo "priority=$PRIORITY"
fi
}