5 *ifup
) modes
="down up";;
6 *) echo "Invalid command: $0";;
11 for mode
in $modes; do
12 ubus call
$interface $mode
16 [ "$modes" = "down up" ] && ubus call network reload
17 [[ "$1" == "-a" ]] && {
18 for interface
in `ubus -S list 'network.interface.*'`; do
24 ubus
-S list
"network.interface.$1" > /dev
/null ||
{
25 echo "Interface $1 not found"
28 if_call
"network.interface.$1"
30 grep -sq ^config
/etc
/config
/wireless
&& {
35 config_get wdev
"$1" device
36 config_get wnet
"$1" network
37 [ -n "$wdev" ] && [ "$wnet" = "$2" ] && echo "$wdev"
40 source /lib
/functions.sh
42 config_foreach find_radio wifi-iface
"$1" |
sort -u