1 # Copyright (C) 2006 OpenWrt.org
6 # PPP devices are configured by pppd, no need to run setup_interface here
12 local cfg="$(find_config "$INTERFACE")"
14 # check the autoload setting
15 config_get auto "$cfg" auto
17 1|on|enabled) setup_interface "$INTERFACE";;
21 # find all vlan configurations for this interface and set them up as well
22 for ifc in $interfaces; do
23 config_get iftype "$ifc" type
24 config_get ifs "$ifc" device
26 [ "${dev%%\.*}" = "$INTERFACE" -a "$dev" != "$INTERFACE" ] && {
37 # find all vlan configurations for this interface and nuke 'em
38 for ifc in $interfaces; do
39 config_get iftype "$ifc" type
40 config_get ifs "$ifc" device
41 confdevs="$(uci get network.$ifc.ifname)"
43 [ "${dev%%\.*}" = "$INTERFACE" ] && {
44 list_contains confdevs "$dev" || list_remove ifs "$dev"
47 uci_set_state "network" "$ifc" device "$ifs"
53 case "$PHYSDEVDRIVER" in