fix remaining *_ifnames references
[openwrt.git] / package / base-files / default / etc / hotplug.d / net / 10-net
1 # Copyright (C) 2006 OpenWrt.org
2
3 include network
4
5 addif() {
6 scan_interfaces
7 setup_interface "$INTERFACE"
8
9 # find all vlan configurations for this interface and set them up as well
10 for ifc in $interfaces; do
11 config_get iftype "$ifc" type
12 config_get ifs "$ifc" ifname
13 for dev in $ifs; do
14 [ "${dev%%\.*}" = "$INTERFACE" -a "$dev" != "$INTERFACE" ] && {
15 add_vlan "$dev"
16 }
17 done
18 done
19 }
20
21 case "$ACTION" in
22 add|register)
23 addif
24 ;;
25 esac
This page took 0.038429 seconds and 5 git commands to generate.