9 ubus call network.interface $mode "{ \"interface\" : \"$interface\" }"
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
41 if_call "${interface##network.interface.}"
43 [ -n "$setup_wifi" ] && /sbin/wifi up
46 ubus -S list "network.interface.$1" > /dev/null || {
47 echo "Interface $1 not found"
53 if [ -n "$setup_wifi" ] && grep -sq 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" ]; then
63 if [ "$wnet" = "$network" ]; then
64 append radio_devs "$wdev" "$N"
72 config_foreach find_related_radios wifi-iface
74 for dev in $(echo "$radio_devs" | sort -u); do