ramips: mt7621: remove bring up DSA master init script
authorDENG Qingfang <dqfext@gmail.com>
Wed, 23 Jun 2021 15:37:25 +0000 (23:37 +0800)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 23 Jul 2021 01:52:02 +0000 (02:52 +0100)
With commit 2e17c710954b, there is no need to bring up DSA master port
manually.

Signed-off-by: DENG Qingfang <dqfext@gmail.com>
target/linux/ramips/mt7621/base-files/lib/preinit/07_mt7621_bringup_dsa_master [deleted file]

diff --git a/target/linux/ramips/mt7621/base-files/lib/preinit/07_mt7621_bringup_dsa_master b/target/linux/ramips/mt7621/base-files/lib/preinit/07_mt7621_bringup_dsa_master
deleted file mode 100644 (file)
index 0f4660d..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-. /lib/functions.sh
-
-mt7621_bringup_dsa_master() {
-    local board=$(board_name)
-    local masterif
-
-    case "$board" in
-    ubnt,edgerouter-x|\
-    ubnt,edgerouter-x-sfp)
-        masterif="dsa"
-        ;;
-    *)
-        masterif="eth0"
-        ;;
-    esac
-
-    ip link set $masterif up
-}
-
-boot_hook_add preinit_main mt7621_bringup_dsa_master
\ No newline at end of file