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"
This page took 0.043051 seconds and 5 git commands to generate.