kmod-switch: vlan parser rewrite, some api changes, minor fixes
[openwrt.git] / openwrt / target / linux / package / base-files / files / brcm-2.6 / etc / network.overrides
1 # NVRAM overrides
2 #
3 # This file handles the NVRAM quirks of various hardware.
4 # THIS FILE IS NOT A REPLACEMENT FOR NVRAM
5
6 # Load sysconf defaults
7 [ -f /etc/sysconf ] && . /etc/sysconf
8
9 DEFAULT_lan_proto="static"
10 DEFAULT_lan_ifname="br0"
11 DEFAULT_lan_ifnames="vlan0 ath0"
12 DEFAULT_lan_ipaddr=${BR2_SYSCONF_FAILSAFE_IP:-"192.168.1.1"}
13 DEFAULT_lan_netmask=${BR2_SYSCONF_FAILSAFE_NETMASK:-"255.255.255.0"}
14 DEFAULT_lan_hwaddr=${DEFAULT_lan_hwaddr:-${BR2_SYSCONF_FAILSAFE_MAC:-"00:0B:AD:0A:DD:00"}}
15 DEFAULT_vlan0hwname="et0"
16 DEFAULT_vlan1hwname="et0"
17 DEFAULT_et0macaddr=$(ifconfig eth0| awk '/eth0/ {print $5 }')
18 DEFAULT_wan_proto="dhcp"
19 DEFAULT_wan_ifname="vlan1"
20
21 # failsafe if reset is held
22 [ "$FAILSAFE" = "true" ] && {
23 echo "### YOU ARE IN FAILSAFE MODE ####"
24 lan_ifname=${DEFAULT_lan_proto}
25 lan_ifnames=${FAILSAFE_ifnames:-${DEFAULT_lan_ifnames}}
26 lan_ipaddr=$DEFAULT_lan_ipaddr
27 lan_netmask=$DEFAULT_lan_netmask
28 lan_hwaddr=$DEFAULT_lan_hwaddr
29 wan_ifname="none"
30 wifi_ifname="none"
31 }
This page took 0.047168 seconds and 5 git commands to generate.