rename sched/tsc patch for trunk
[openwrt.git] / openwrt / target / linux / package / base-files / files / brcm-2.4 / 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 # hacks for wrt54g 1.x hardware
10 [ "$(nvram get boardnum)" = "42" \
11 -a "$(nvram get boardtype)" = "bcm94710dev" ] && FAILSAFE_ifnames="vlan0 vlan2 eth2"
12
13 # hacks for asus wl-500g deluxe
14 [ "$(nvram get boardtype)" = "bcm95365r" \
15 -a "$(nvram get boardnum)" = "45" ] && FAILSAFE_ifnames="vlan0 eth1"
16
17 # hacks for wap54g hardware
18 [ "$(nvram get boardnum)" = "2" \
19 -o "$(nvram get boardnum)" = "1024" ] && FAILSAFE_ifnames="eth0 eth1"
20
21 # hack for asus wl-500g hardware
22 [ "$(nvram get boardnum)" = "asusX" \
23 -a "$(nvram get boardtype)" = "bcm94710dev" ] && FAILSAFE_ifnames="eth0 eth1 eth2"
24
25 FAILSAFE_ifnames=${FAILSAFE_ifnames:-"vlan0 eth1 eth2"}
26
27 DEFAULT_lan_ipaddr=${BR2_SYSCONF_FAILSAFE_IP:-"192.168.1.1"}
28 DEFAULT_lan_netmask=${BR2_SYSCONF_FAILSAFE_NETMASK:-"255.255.255.0"}
29 DEFAULT_lan_hwaddr=${BR2_SYSCONF_FAILSAFE_MAC:-"00:0B:AD:0A:DD:00"}
30
31 # failsafe if reset is held
32 [ "$FAILSAFE" = "true" ] && {
33 echo "### YOU ARE IN FAILSAFE MODE ####"
34 NVRAM_lan_ifname="br0"
35 NVRAM_lan_ifnames=$FAILSAFE_ifnames
36 NVRAM_lan_ipaddr=DEFAULT_lan_ipaddr
37 NVRAM_lan_netmask=DEFAULT_lan_netmask
38 NVRAM_lan_hwaddr=DEFAULT_lan_hwaddr
39 NVRAM_wan_ifname="none"
40 NVRAM_wifi_ifname="none"
41 }
This page took 0.044947 seconds and 5 git commands to generate.