summaryrefslogtreecommitdiff
path: root/root/etc/nvram.overrides
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2005-10-17 12:24:08 +0000
committerImre Kaloz <kaloz@openwrt.org>2005-10-17 12:24:08 +0000
commit15bee86fc3df92f0bbdf0a17eac3915965983396 (patch)
tree6a621c91d22f093f023a29c72252ea47ba9fb32a /root/etc/nvram.overrides
parent487c71693d31836144cd0a55ae73b76c64f71561 (diff)
downloadmtk-20170518-15bee86fc3df92f0bbdf0a17eac3915965983396.zip
mtk-20170518-15bee86fc3df92f0bbdf0a17eac3915965983396.tar.gz
mtk-20170518-15bee86fc3df92f0bbdf0a17eac3915965983396.tar.bz2
removed the old directories, too.. cleanup is ready, yay
SVN-Revision: 2130
Diffstat (limited to 'root/etc/nvram.overrides')
-rw-r--r--root/etc/nvram.overrides52
1 files changed, 0 insertions, 52 deletions
diff --git a/root/etc/nvram.overrides b/root/etc/nvram.overrides
deleted file mode 100644
index e334d75..0000000
--- a/root/etc/nvram.overrides
+++ /dev/null
@@ -1,52 +0,0 @@
-# NVRAM overrides
-# This file handles the NVRAM quirks of various hardware
-# this is not a replacement for nvram.
-
-# linksys bug has lan doing dhcp; force static
-lan_proto="static"
-
-# failsafe if reset is held
-[ "$FAILSAFE" = "true" ] && {
- echo "### FAILSAFE MODE ####"
- lan_ifname="br0"
- lan_ifnames="vlan0 vlan2 eth1 eth2 eth3"
- lan_ipaddr="192.168.1.1"
- lan_netmask="255.255.255.0"
- lan_hwaddr="00:0B:AD:0A:DD:00"
- wan_ifname="none"
- wifi_ifname="none"
-}
-
-# hacks for 1.x hardware
-[ "$(nvram get boardnum)" = "42" ] && \
-[ "$(nvram get boardtype)" = "bcm94710dev" ] && {
- debug "### 1.x hardware hack ###"
- vlan1hwname="et0"
- vlan2hwname="et0"
-
- # we remap old device names to new
- # it's recommended that you continue to
- # use the old names to preserve backwards
- # compatibility
- remap () {
- eval $1=\"$(nvram_get $1 | awk 'gsub("eth0","vlan2") gsub("eth1","vlan1")')\"
- }
-
- remap lan_ifname
- remap lan_ifnames
- remap wifi_ifname
- remap wifi_ifnames
- remap wan_ifname
- remap wan_ifnames
- remap pppoe_ifname
-}
-
-[ -z "$(nvram_get lan_ifname)" ] && {
- lan_ifname="br0"
- lan_ifnames="vlan0 vlan2 eth1 eth2 eth3"
-}
-
-[ -z "$(nvram_get wan_ifname)" ] && {
- wan_ifname="vlan1"
- wan_proto="dhcp"
-}