[LEDE-DEV] [RFC/RFT 6/7] ramips: switch to generic failsafe iface setup
Jonas Gorski
jonas.gorski at gmail.com
Fri Jul 29 02:07:54 PDT 2016
Any required vlan setup should be taken care of the generic code, so we
can drop the ramips iface setup.
Signed-off-by: Jonas Gorski <jonas.gorski at gmail.com>
---
.../lib/preinit/07_set_preinit_iface_ramips | 29 ----------------------
1 file changed, 29 deletions(-)
delete mode 100644 target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips
diff --git a/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips b/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips
deleted file mode 100644
index 452b1b2..0000000
--- a/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/sh
-#
-# Copyright (C) 2013 OpenWrt.org
-#
-
-. /lib/ramips.sh
-
-ramips_set_preinit_iface() {
- RT3X5X=`cat /proc/cpuinfo | egrep "(RT3.5|RT5350|MT7628|MT7688|MT7620)"`
-
- if [ -n "${RT3X5X}" ]; then
- # The ethernet switch driver enables VLAN by default, but
- # failsafe uses eth0, making the device unreachable:
- # https://dev.openwrt.org/ticket/18768
- ralink_switchdev=rt305x
- case "${RT3X5X}" in
- *MT7620*)
- ralink_switchdev=mt7620
- ;;
- esac
- swconfig dev $ralink_switchdev set reset 1
- swconfig dev $ralink_switchdev set enable_vlan 0
- swconfig dev $ralink_switchdev set apply 1
- fi
-
- ifname=eth0
-}
-
-boot_hook_add preinit_main ramips_set_preinit_iface
--
2.1.4
More information about the Lede-dev
mailing list