5 *ifup) modes="down up";;
6 *) echo "Invalid command: $0";;
11 for mode in $modes; do
12 ubus call $interface $mode
16 [[ "$1" == "-a" ]] && {
17 for interface in `ubus -S list 'network.interface.*'`; do
23 ubus -S list "network.interface.$1" > /dev/null || {
24 echo "Interface $1 not found"
27 if_call "network.interface.$1"