2013-01-31 10:23:27 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2013-10-03 18:04:03 +02:00
|
|
|
. /lib/functions.sh
|
2013-01-31 10:23:27 +01:00
|
|
|
|
2013-10-03 18:04:03 +02:00
|
|
|
config_load wireless
|
2013-01-31 10:23:27 +01:00
|
|
|
|
2013-10-03 18:04:03 +02:00
|
|
|
delete_iface() {
|
|
|
|
local iface="$1"
|
2013-01-31 10:23:27 +01:00
|
|
|
|
2013-10-03 18:04:03 +02:00
|
|
|
uci_remove wireless "$iface"
|
|
|
|
}
|
2013-01-31 10:23:27 +01:00
|
|
|
|
2013-10-03 18:04:03 +02:00
|
|
|
config_foreach delete_iface 'wifi-iface'
|
|
|
|
uci_commit wireless
|