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 [ "$modes" = "down up" ] && ubus call network reload
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.056983 seconds and 5 git commands to generate.