rewrite of the network scripts and configuration
[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 type "$ifc" type
12 case "$type" in
13 bridge) config_get ifs "$ifc" ifnames;;
14 *) config_get ifs "$ifc" ifname;;
15 esac
16 for dev in $ifs; do
17 [ "${dev%%\.*}" = "$INTERFACE" -a "$dev" != "$INTERFACE" ] && {
18 add_vlan "$dev"
19 }
20 done
21 done
22 }
23
24 case "$ACTION" in
25 add|register)
26 addif
27 ;;
28 esac
This page took 0.04087 seconds and 5 git commands to generate.