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..1420553 100644 --- a/src/8021x +++ b/src/8021x @@ -271,6 +271,11 @@ make_wpa_config() { if checkyesno ${HIDDEN:-no}; then echo "scan_ssid=1" fi + + # Priority group for network + if [[ -n "$PRIORITY" ]]; then + echo "priority=$PRIORITY" + fi } # vim: ft=sh ts=4 et sw=4 tw=0: