Skip to content
Snippets Groups Projects
Commit 83525a5f authored by Jouke Witteveen's avatar Jouke Witteveen
Browse files

Improve active interface finding in netctl-auto

parent 1d95b20b
No related branches found
No related tags found
No related merge requests found
......@@ -28,9 +28,10 @@ END
## Print a list of interfaces for which netctl-auto is active
list_netctl_auto_interfaces() {
systemctl --full --no-legend --no-pager \
--type=service --state=running list-units | \
sed -nr 's/^netctl-auto@([[:alnum:]]+).*/\1/p'
systemctl --full --no-legend --no-pager --plain --state=running \
list-units 'netctl-auto@*.service' | while read -r name _; do
systemd-escape --unescape --instance "$name"
done
}
## List all profiles available to the WPA supplicant
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment