openwrtv4/openwrt/package/base-files/default/etc/hotplug.d/net/10-net
Felix Fietkau a0a9319149 fix remaining *_ifnames references
SVN-Revision: 4650
2006-08-24 12:20:02 +00:00

25 lines
455 B
Text

# Copyright (C) 2006 OpenWrt.org
include network
addif() {
scan_interfaces
setup_interface "$INTERFACE"
# find all vlan configurations for this interface and set them up as well
for ifc in $interfaces; do
config_get iftype "$ifc" type
config_get ifs "$ifc" ifname
for dev in $ifs; do
[ "${dev%%\.*}" = "$INTERFACE" -a "$dev" != "$INTERFACE" ] && {
add_vlan "$dev"
}
done
done
}
case "$ACTION" in
add|register)
addif
;;
esac