[PATCH] ramips: mt7621: remove bring up DSA master init script
DENG Qingfang
dqfext at gmail.com
Wed Jun 23 08:37:25 PDT 2021
With commit 2e17c710954b, there is no need to bring up DSA master port
manually.
Signed-off-by: DENG Qingfang <dqfext at gmail.com>
---
.../lib/preinit/07_mt7621_bringup_dsa_master | 20 -------------------
1 file changed, 20 deletions(-)
delete mode 100644 target/linux/ramips/mt7621/base-files/lib/preinit/07_mt7621_bringup_dsa_master
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
index 0f4660d242..0000000000
--- a/target/linux/ramips/mt7621/base-files/lib/preinit/07_mt7621_bringup_dsa_master
+++ /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
--
2.25.1
More information about the openwrt-devel
mailing list