mirror of
https://github.com/freifunk-gluon/packages.git
synced 2024-06-15 11:43:55 +02:00
20 lines
292 B
Bash
Executable File
20 lines
292 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. /lib/functions.sh
|
|
|
|
config_load wireless
|
|
|
|
delete_legacy_iface() {
|
|
local iface="$1"
|
|
|
|
for wifi in @legacy.wifi_names@; do
|
|
if [ "$wifi" = "$iface" ]; then
|
|
uci_remove wireless "$iface"
|
|
break
|
|
fi
|
|
done
|
|
}
|
|
|
|
config_foreach delete_legacy_iface 'wifi-iface'
|
|
uci_commit wireless
|