summaryrefslogtreecommitdiff
path: root/inventory/group_vars/accesspoints/vars.yml
diff options
context:
space:
mode:
Diffstat (limited to 'inventory/group_vars/accesspoints/vars.yml')
-rw-r--r--inventory/group_vars/accesspoints/vars.yml16
1 files changed, 1 insertions, 15 deletions
diff --git a/inventory/group_vars/accesspoints/vars.yml b/inventory/group_vars/accesspoints/vars.yml
index 0c5e5c53..1a841e13 100644
--- a/inventory/group_vars/accesspoints/vars.yml
+++ b/inventory/group_vars/accesspoints/vars.yml
@@ -291,21 +291,7 @@ openwrt_mixin:
/usr/bin/list-stations:
mode: "0755"
- content: |
- #!/bin/sh
-
- interfaces=$(iw dev | grep "Interface " | cut -d ' ' -f2 | sort)
-
- for interface in $interfaces; do
- bssid=$(iw $interface info | grep "addr " | cut -d ' ' -f2)
- essid=$(iw $interface info | grep "ssid " | cut -d ' ' -f2-)
- channel=$(iw $interface info | grep "channel " | cut -d ' ' -f2-)
- echo "$interface ($bssid, ssid: '$essid', channel: $channel)"
- iw $interface station dump | grep "^Station" | awk '{ print(" - "$2) }'
- echo ""
- done
-
- exit 0
+ file: "{{ global_files_dir }}/common/openwrt/list-stations"
openwrt_uci_base: