source: trunk/openwrt/target/linux/package/base-files/files/aruba-2.6/etc/network.overrides @ 2968

Last change on this file since 2968 was 2968, checked in by mbm, 10 years ago

fix networking

File size: 802 bytes
Line 
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
9DEFAULT_lan_proto="static"
10DEFAULT_lan_ifname="br0"
11DEFAULT_lan_ifnames="eth0"
12DEFAULT_lan_ipaddr=${BR2_SYSCONF_FAILSAFE_IP:-"192.168.1.1"}
13DEFAULT_lan_netmask=${BR2_SYSCONF_FAILSAFE_NETMASK:-"255.255.255.0"}
14# DEFAULT_lan_hwaddr=${BR2_SYSCONF_FAILSAFE_MAC:-"00:0B:AD:0A:DD:00"}
15
16# failsafe if reset is held
17[ "$FAILSAFE" = "true" ] && {
18  echo "### YOU ARE IN FAILSAFE MODE ####"
19  lan_ifname=${DEFAULT_lan_proto}
20  lan_ifnames=${FAILSAFE_ifnames:-${DEFAULT_lan_ifnames}}
21  lan_ipaddr=$DEFAULT_lan_ipaddr
22  lan_netmask=$DEFAULT_lan_netmask
23  lan_hwaddr=$DEFAULT_lan_hwaddr
24  wan_ifname="none"
25  wifi_ifname="none"
26}
Note: See TracBrowser for help on using the repository browser.