9 ubus call
$interface $mode
19 *) echo "Invalid command: $0";;
38 [ "$modes" = "down up" ] && ubus call network reload
39 if [ -n "$ifup_all" ]; then
40 for interface
in `ubus -S list 'network.interface.*'`; do
43 [ -n "$setup_wifi" ] && /sbin
/wifi up
46 ubus
-S list
"network.interface.$1" > /dev
/null ||
{
47 echo "Interface $1 not found"
50 if_call
"network.interface.$1"
53 if [ -n "$setup_wifi" ] && grep -q config
/etc
/config
/wireless
; then
56 find_related_radios
() {
58 config_get wdev
"$1" device
59 config_get wnet
"$1" network
61 if [ -n "$wdev" ] && [ "$wnet" = "$network" ]; then
62 append radio_devs
"$wdev" "$N"
69 config_foreach find_related_radios wifi-iface
72 for dev
in $
(echo "$radio_devs" |
sort -u); do