]> git.ipfire.org Git - people/stevee/network.git/blobdiff - src/hooks/zones/wireless
802.11s: Write WPA supplicant configuration
[people/stevee/network.git] / src / hooks / zones / wireless
index 962f5fc570fe8e357b6a6766268416ee57629471..0bb4aa81a17e35fcefccb7804d2579fefb07e3f0 100644 (file)
@@ -48,19 +48,19 @@ hook_parse_cmdline() {
        while [ $# -gt 0 ]; do
                case "${1}" in
                        --phy=*|--parent-device=*)
-                               PHY=$(cli_get_val ${1})
+                               PHY=$(cli_get_val "${1}")
                                ;;
                        --encryption-mode=*)
-                               ENCRYPTION_MODE=$(cli_get_val ${1})
+                               ENCRYPTION_MODE=$(cli_get_val "${1}")
                                ;;
                        --address=*)
-                               ADDRESS=$(cli_get_val ${1})
+                               ADDRESS=$(cli_get_val "${1}")
                                ;;
                        --ssid=*)
-                               SSID=$(cli_get_val ${1})
+                               SSID=$(cli_get_val "${1}")
                                ;;
                        --key=*)
-                               KEY=$(cli_get_val ${1})
+                               KEY=$(cli_get_val "${1}")
                                ;;
                        *)
                                warning "Unrecognized option: ${1}"
@@ -143,7 +143,7 @@ hook_status() {
        cli_print_fmt1 3 "Noise" \
                "$(wpa_cli_bss_get_noise ${zone} ${bssid})"
        cli_print_fmt1 3 "Quality" \
-               "$(wpa_cli_bss_get_quality ${zone} ${bssid})"
+               "$(wpa_cli_bss_get_quality ${zone} ${bssid})%%"
        cli_print_fmt1 3 "Flags" \
                "$(wpa_cli_bss_get_flags ${zone} ${bssid})"
        cli_space