[LEDE-DEV] [RFC/RFT 5/7] targets: remove trivial set_preinit_iface_*

Jonas Gorski jonas.gorski at gmail.com
Fri Jul 29 02:07:53 PDT 2016


Remove all trivial set_preinit_iface implementation which just set ethX
based on the board name.

Signed-off-by: Jonas Gorski <jonas.gorski at gmail.com>
---
 .../lib/preinit/05_set_preinit_iface_adm5120       |  9 ----
 .../lib/preinit/05_set_preinit_iface_apm821xx      |  9 ----
 .../lib/preinit/05_set_preinit_iface_ar71xx        | 57 ----------------------
 .../lib/preinit/05_set_preinit_iface_bcm53xx       |  7 ---
 .../lib/preinit/05_set_preinit_iface_brcm2708      | 17 -------
 .../lib/preinit/05_init_interfaces_brcm63xx        | 37 --------------
 .../lib/preinit/05_set_preinit_iface_lantiq        | 10 ----
 .../lib/preinit/05_set_preinit_iface_mpc85xx       | 12 -----
 8 files changed, 158 deletions(-)
 delete mode 100644 target/linux/adm5120/base-files/lib/preinit/05_set_preinit_iface_adm5120
 delete mode 100644 target/linux/apm821xx/base-files/lib/preinit/05_set_preinit_iface_apm821xx
 delete mode 100644 target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx
 delete mode 100644 target/linux/bcm53xx/base-files/lib/preinit/05_set_preinit_iface_bcm53xx
 delete mode 100644 target/linux/brcm2708/base-files/lib/preinit/05_set_preinit_iface_brcm2708
 delete mode 100644 target/linux/brcm63xx/base-files/lib/preinit/05_init_interfaces_brcm63xx
 delete mode 100644 target/linux/lantiq/base-files/lib/preinit/05_set_preinit_iface_lantiq
 delete mode 100644 target/linux/mpc85xx/base-files/lib/preinit/05_set_preinit_iface_mpc85xx

diff --git a/target/linux/adm5120/base-files/lib/preinit/05_set_preinit_iface_adm5120 b/target/linux/adm5120/base-files/lib/preinit/05_set_preinit_iface_adm5120
deleted file mode 100644
index ac2a7cb..0000000
--- a/target/linux/adm5120/base-files/lib/preinit/05_set_preinit_iface_adm5120
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-set_preinit_ifname() {
-	ifname=eth0
-}
-
-boot_hook_add preinit_main set_preinit_ifname
-
-
diff --git a/target/linux/apm821xx/base-files/lib/preinit/05_set_preinit_iface_apm821xx b/target/linux/apm821xx/base-files/lib/preinit/05_set_preinit_iface_apm821xx
deleted file mode 100644
index 97ef6dc..0000000
--- a/target/linux/apm821xx/base-files/lib/preinit/05_set_preinit_iface_apm821xx
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-. /lib/apm821xx.sh
-
-apm821xx_set_preinit_iface() {
-	ifname=eth0
-}
-
-boot_hook_add preinit_main apm821xx_set_preinit_iface
diff --git a/target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx b/target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx
deleted file mode 100644
index c4177e1..0000000
--- a/target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/sh
-
-#
-# Copyright (C) 2009 OpenWrt.org
-#
-
-. /lib/ar71xx.sh
-
-set_preinit_iface() {
-	case $(ar71xx_board_name) in
-	alfa-ap96 |\
-	alfa-nx |\
-	ap135-020 |\
-	ap136-020 |\
-	ap147-010 |\
-	ap83 |\
-	archer-c5 |\
-	archer-c7 |\
-	dir-505-a1 |\
-	gl-inet |\
-	jwap003 |\
-	pb42 |\
-	pb44 |\
-	rb-433 |\
-	rb-433u |\
-	rb-435g |\
-	rb-450 |\
-	rb-450g |\
-	routerstation |\
-	routerstation-pro |\
-	smart-300 |\
-	tl-mr3420-v2 |\
-	tl-wdr4900-v2 |\
-	tl-wr1043nd-v2 |\
-	tl-wr710n |\
-	tl-wr720n-v3 |\
-	tl-wr841n-v8 |\
-	tl-wr842n-v2 |\
-	tl-wr941nd-v6 |\
-	wnr2000-v3 |\
-	wnr2200 |\
-	wnr612-v2 |\
-	wnr1000-v2 |\
-	wpn824n |\
-	wpe72)
-		ifname=eth1
-		;;
-	*)
-		ifname=eth0
-		;;
-	esac
-}
-
-boot_hook_add preinit_main set_preinit_iface
-
-
-
diff --git a/target/linux/bcm53xx/base-files/lib/preinit/05_set_preinit_iface_bcm53xx b/target/linux/bcm53xx/base-files/lib/preinit/05_set_preinit_iface_bcm53xx
deleted file mode 100644
index 0539b82..0000000
--- a/target/linux/bcm53xx/base-files/lib/preinit/05_set_preinit_iface_bcm53xx
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-
-set_preinit_iface() {
-	ifname=eth0
-}
-
-boot_hook_add preinit_main set_preinit_iface
diff --git a/target/linux/brcm2708/base-files/lib/preinit/05_set_preinit_iface_brcm2708 b/target/linux/brcm2708/base-files/lib/preinit/05_set_preinit_iface_brcm2708
deleted file mode 100644
index 578172e..0000000
--- a/target/linux/brcm2708/base-files/lib/preinit/05_set_preinit_iface_brcm2708
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-# Copyright (C) 2015-2016 OpenWrt.org
-
-. /lib/brcm2708.sh
-
-set_preinit_iface() {
-	case "$(brcm2708_board_name)" in
-	rpi-b |\
-	rpi-b-plus |\
-	rpi-2-b |\
-	rpi-3-b)
-		ifname=eth0
-		;;
-	esac
-}
-
-boot_hook_add preinit_main set_preinit_iface
diff --git a/target/linux/brcm63xx/base-files/lib/preinit/05_init_interfaces_brcm63xx b/target/linux/brcm63xx/base-files/lib/preinit/05_init_interfaces_brcm63xx
deleted file mode 100644
index 8aa3225..0000000
--- a/target/linux/brcm63xx/base-files/lib/preinit/05_init_interfaces_brcm63xx
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/sh
-
-. /lib/brcm63xx.sh
-
-set_preinit_iface() {
-	case "$(brcm63xx_board_name)" in
-	agpf-s0 |\
-	bcm96348gw |\
-	bcm96348gw-10 |\
-	bcm96348gw-11 |\
-	bcm96358vw |\
-	bcm96358vw2 |\
-	cpva502p |\
-	dg834gt |\
-	dmv-s0 |\
-	dsl-2650u |\
-	dv-201amr |\
-	dva-g3810bn |\
-	f5d7633 |\
-	fast2404 |\
-	hg520 |\
-	magic |\
-	neufbox4 |\
-	rg100a |\
-	rta1025W |\
-	td-w8900gb |\
-	usr9108 |\
-	v2500v_bb)
-		ifname=eth1
-		;;
-	*)
-		ifname=eth0
-		;;
-	esac
-}
-
-boot_hook_add preinit_main set_preinit_iface
diff --git a/target/linux/lantiq/base-files/lib/preinit/05_set_preinit_iface_lantiq b/target/linux/lantiq/base-files/lib/preinit/05_set_preinit_iface_lantiq
deleted file mode 100644
index 7ed0fab..0000000
--- a/target/linux/lantiq/base-files/lib/preinit/05_set_preinit_iface_lantiq
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-. /lib/functions/lantiq.sh
-
-set_preinit_iface() {
-	ifname=eth0
-}
-
-boot_hook_add preinit_main set_preinit_iface
-
diff --git a/target/linux/mpc85xx/base-files/lib/preinit/05_set_preinit_iface_mpc85xx b/target/linux/mpc85xx/base-files/lib/preinit/05_set_preinit_iface_mpc85xx
deleted file mode 100644
index 22d7471..0000000
--- a/target/linux/mpc85xx/base-files/lib/preinit/05_set_preinit_iface_mpc85xx
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-#
-# Copyright (C) 2013 OpenWrt.org
-#
-
-. /lib/mpc85xx.sh
-
-mpc85xx_set_preinit_iface() {
-	ifname=eth0
-}
-
-boot_hook_add preinit_main mpc85xx_set_preinit_iface
-- 
2.1.4




More information about the Lede-dev mailing list