Skip to content
Snippets Groups Projects
Commit bb47de9b authored by Jakob Olsson's avatar Jakob Olsson
Browse files

script: multiap: always get first network id

parent 418ac71b
No related branches found
No related tags found
1 merge request!711Wpa supp conf fix
...@@ -52,7 +52,7 @@ get_network_id() { ...@@ -52,7 +52,7 @@ get_network_id() {
local ifname=$1 local ifname=$1
[ -n "$ifname" ] || return [ -n "$ifname" ] || return
network_id=$(wpa_cli -i $ifname list_n|tail -n 1 | awk '{print $1}') network_id=$(wpa_cli -i $ifname list_n| sed '1d' | head -n 1 | awk '{print $1}')
echo ${network_id} echo ${network_id}
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment