aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2017-07-09 12:25:04 +0200
committerMathias Kresin <dev@kresin.me>2017-07-15 23:13:34 +0200
commite0b9ec8e969e1c37c284cfa2f252e9b0a71157db (patch)
tree666be710b772d5e3d50a45943e122376e1a22294 /target/linux
parentf12a32630ff52b5e13397f64e9fb31708e97fb60 (diff)
downloadupstream-e0b9ec8e969e1c37c284cfa2f252e9b0a71157db.tar.gz
upstream-e0b9ec8e969e1c37c284cfa2f252e9b0a71157db.tar.bz2
upstream-e0b9ec8e969e1c37c284cfa2f252e9b0a71157db.zip
treewide: drop target board_name functions
They are not used any longer. Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux')
-rwxr-xr-xtarget/linux/apm821xx/base-files/lib/apm821xx.sh9
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh9
-rw-r--r--target/linux/arc770/base-files/lib/arc.sh10
-rw-r--r--target/linux/archs38/base-files/lib/arc.sh10
-rwxr-xr-xtarget/linux/at91/base-files/lib/at91.sh9
-rw-r--r--target/linux/brcm2708/base-files/lib/brcm2708.sh9
-rwxr-xr-xtarget/linux/brcm63xx/base-files/lib/brcm63xx.sh9
-rw-r--r--target/linux/cns3xxx/base-files/lib/cns3xxx.sh9
-rwxr-xr-xtarget/linux/imx6/base-files/lib/imx6.sh9
-rw-r--r--target/linux/ipq806x/base-files/lib/ipq806x.sh9
-rw-r--r--target/linux/ixp4xx/base-files/lib/ixp4xx.sh9
-rwxr-xr-xtarget/linux/kirkwood/base-files/lib/kirkwood.sh9
-rw-r--r--target/linux/mcs814x/base-files/lib/mcs814x.sh9
-rwxr-xr-xtarget/linux/mpc85xx/base-files/lib/mpc85xx.sh9
-rwxr-xr-xtarget/linux/mvebu/base-files/lib/mvebu.sh9
-rw-r--r--target/linux/mxs/base-files/lib/mxs.sh9
-rwxr-xr-xtarget/linux/oxnas/base-files/lib/oxnas.sh9
-rwxr-xr-xtarget/linux/ppc40x/base-files/lib/ppc40x.sh11
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh9
-rw-r--r--target/linux/sunxi/base-files/lib/sunxi.sh10
20 files changed, 0 insertions, 185 deletions
diff --git a/target/linux/apm821xx/base-files/lib/apm821xx.sh b/target/linux/apm821xx/base-files/lib/apm821xx.sh
index 98f6ee92ab..8f0814b296 100755
--- a/target/linux/apm821xx/base-files/lib/apm821xx.sh
+++ b/target/linux/apm821xx/base-files/lib/apm821xx.sh
@@ -41,12 +41,3 @@ apm821xx_board_detect() {
echo "$APM821XX_BOARD_NAME" > /tmp/sysinfo/board_name
echo "$APM821XX_MODEL" > /tmp/sysinfo/model
}
-
-apm821xx_board_name() {
- local name
-
- [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
- [ -z "$name" ] && name="unknown"
-
- echo "$name"
-}
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index b74807d4b0..5c29a3f0d0 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -1342,12 +1342,3 @@ ar71xx_board_detect() {
echo "$AR71XX_BOARD_NAME" > /tmp/sysinfo/board_name
echo "$AR71XX_MODEL" > /tmp/sysinfo/model
}
-
-ar71xx_board_name() {
- local name
-
- [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
- [ -z "$name" ] && name="unknown"
-
- echo "$name"
-}
diff --git a/target/linux/arc770/base-files/lib/arc.sh b/target/linux/arc770/base-files/lib/arc.sh
index 2b4fb93ce9..185aeedb2d 100644
--- a/target/linux/arc770/base-files/lib/arc.sh
+++ b/target/linux/arc770/base-files/lib/arc.sh
@@ -38,13 +38,3 @@ arc_board_detect() {
echo "$ARC_BOARD_MODEL" > /tmp/sysinfo/model
echo "Detected $ARC_BOARD_NAME // $ARC_BOARD_MODEL"
}
-
-arc_board_name() {
- local name
-
- [ -f /tmp/sysinfo/board_name ] && name="$(cat /tmp/sysinfo/board_name)"
- [ -z "$name" ] && name="unknown"
-
- echo "$name"
-}
-
diff --git a/target/linux/archs38/base-files/lib/arc.sh b/target/linux/archs38/base-files/lib/arc.sh
index 99d0077f67..9ca1a2c09a 100644
--- a/target/linux/archs38/base-files/lib/arc.sh
+++ b/target/linux/archs38/base-files/lib/arc.sh
@@ -38,13 +38,3 @@ arc_board_detect() {
echo "$ARC_BOARD_MODEL" > /tmp/sysinfo/model
echo "Detected $ARC_BOARD_NAME // $ARC_BOARD_MODEL"
}
-
-arc_board_name() {
- local name
-
- [ -f /tmp/sysinfo/board_name ] && name="$(cat /tmp/sysinfo/board_name)"
- [ -z "$name" ] && name="unknown"
-
- echo "$name"
-}
-
diff --git a/target/linux/at91/base-files/lib/at91.sh b/target/linux/at91/base-files/lib/at91.sh
index e395646cbc..0fa2ee3251 100755
--- a/target/linux/at91/base-files/lib/at91.sh
+++ b/target/linux/at91/base-files/lib/at91.sh
@@ -79,12 +79,3 @@ at91_board_detect() {
echo "$AT91_BOARD_NAME" > /tmp/sysinfo/board_name
echo "$AT91_MODEL" > /tmp/sysinfo/model
}
-
-at91_board_name() {
- local name
-
- [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
- [ -n "$name" ] || name="unknown"
-
- echo "$name"
-}
diff --git a/target/linux/brcm2708/base-files/lib/brcm2708.sh b/target/linux/brcm2708/base-files/lib/brcm2708.sh
index 81f123f204..76e678ff97 100644
--- a/target/linux/brcm2708/base-files/lib/brcm2708.sh
+++ b/target/linux/brcm2708/base-files/lib/brcm2708.sh
@@ -41,12 +41,3 @@ brcm2708_detect() {
echo "$board_name" > /tmp/sysinfo/board_name
echo "$model" > /tmp/sysinfo/model
}
-
-brcm2708_board_name() {
- local name
-
- [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
- [ -n "$name" ] || name="unknown"
-
- echo $name
-}
diff --git a/target/linux/brcm63xx/base-files/lib/brcm63xx.sh b/target/linux/brcm63xx/base-files/lib/brcm63xx.sh
index 0dc87d0fd0..fc3d6990f3 100755
--- a/target/linux/brcm63xx/base-files/lib/brcm63xx.sh
+++ b/target/linux/brcm63xx/base-files/lib/brcm63xx.sh
@@ -299,12 +299,3 @@ brcm63xx_detect() {
echo "$board_name" > /tmp/sysinfo/board_name
echo "$model" > /tmp/sysinfo/model
}
-
-brcm63xx_board_name() {
- local name
-
- [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
- [ -n "$name" ] || name="unknown"
-
- echo $name
-}
diff --git a/target/linux/cns3xxx/base-files/lib/cns3xxx.sh b/target/linux/cns3xxx/base-files/lib/cns3xxx.sh
index fb2c1043e1..877f9f8749 100644
--- a/target/linux/cns3xxx/base-files/lib/cns3xxx.sh
+++ b/target/linux/cns3xxx/base-files/lib/cns3xxx.sh
@@ -26,12 +26,3 @@ cns3xxx_board_detect() {
echo "$CNS3XXX_BOARD_NAME" > /tmp/sysinfo/board_name
echo "$CNS3XXX_MODEL" > /tmp/sysinfo/model
}
-
-cns3xxx_board_name() {
- local name
-
- [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
- [ -z "$name" ] && name="unknown"
-
- echo "$name"
-}
diff --git a/target/linux/imx6/base-files/lib/imx6.sh b/target/linux/imx6/base-files/lib/imx6.sh
index 385c54f9f9..e211f54e54 100755
--- a/target/linux/imx6/base-files/lib/imx6.sh
+++ b/target/linux/imx6/base-files/lib/imx6.sh
@@ -71,12 +71,3 @@ imx6_board_detect() {
echo "$IMX6_BOARD_NAME" > /tmp/sysinfo/board_name
echo "$IMX6_MODEL" > /tmp/sysinfo/model
}
-
-imx6_board_name() {
- local name
-
- [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
- [ -z "$name" ] && name="unknown"
-
- echo "$name"
-}
diff --git a/target/linux/ipq806x/base-files/lib/ipq806x.sh b/target/linux/ipq806x/base-files/lib/ipq806x.sh
index a8950a5e85..e8ff7ea3f8 100644
--- a/target/linux/ipq806x/base-files/lib/ipq806x.sh
+++ b/target/linux/ipq806x/base-files/lib/ipq806x.sh
@@ -60,15 +60,6 @@ ipq806x_board_detect() {
echo "$IPQ806X_MODEL" > /tmp/sysinfo/model
}
-ipq806x_board_name() {
- local name
-
- [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
- [ -z "$name" ] && name="unknown"
-
- echo "$name"
-}
-
ipq806x_get_dt_led() {
local label
local ledpath
diff --git a/target/linux/ixp4xx/base-files/lib/ixp4xx.sh b/target/linux/ixp4xx/base-files/lib/ixp4xx.sh
index 7486356b9c..3f73dd98e0 100644
--- a/target/linux/ixp4xx/base-files/lib/ixp4xx.sh
+++ b/target/linux/ixp4xx/base-files/lib/ixp4xx.sh
@@ -32,12 +32,3 @@ ixp4xx_board_detect() {
echo "$IXP4XX_BOARD_NAME" > /tmp/sysinfo/board_name
echo "$IXP4XX_MODEL" > /tmp/sysinfo/model
}
-
-ixp4xx_board_name() {
- local name
-
- [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
- [ -z "$name" ] && name="unknown"
-
- echo $name
-}
diff --git a/target/linux/kirkwood/base-files/lib/kirkwood.sh b/target/linux/kirkwood/base-files/lib/kirkwood.sh
index 20c6ebdfde..f1229fa97b 100755
--- a/target/linux/kirkwood/base-files/lib/kirkwood.sh
+++ b/target/linux/kirkwood/base-files/lib/kirkwood.sh
@@ -86,12 +86,3 @@ kirkwood_board_detect() {
echo "$KIRKWOOD_BOARD_NAME" > /tmp/sysinfo/board_name
echo "$KIRKWOOD_MODEL" > /tmp/sysinfo/model
}
-
-kirkwood_board_name() {
- local name
-
- [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
- [ -z "$name" ] && name="unknown"
-
- echo "$name"
-}
diff --git a/target/linux/mcs814x/base-files/lib/mcs814x.sh b/target/linux/mcs814x/base-files/lib/mcs814x.sh
index e4360fdb8f..3c16c9c125 100644
--- a/target/linux/mcs814x/base-files/lib/mcs814x.sh
+++ b/target/linux/mcs814x/base-files/lib/mcs814x.sh
@@ -31,12 +31,3 @@ mcs814x_board_detect() {
echo "$MCS814X_BOARD_NAME" > /tmp/sysinfo/board_name
echo "$MCS814X_MODEL" > /tmp/sysinfo/model
}
-
-mcs814x_board_name() {
- local name
-
- [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
- [ -z "$name" ] && name="unknown"
-
- echo "$name"
-}
diff --git a/target/linux/mpc85xx/base-files/lib/mpc85xx.sh b/target/linux/mpc85xx/base-files/lib/mpc85xx.sh
index 57575634d6..1a2a671e28 100755
--- a/target/linux/mpc85xx/base-files/lib/mpc85xx.sh
+++ b/target/linux/mpc85xx/base-files/lib/mpc85xx.sh
@@ -28,12 +28,3 @@ mpc85xx_board_detect() {
echo "$MPC85XX_BOARD_NAME" > /tmp/sysinfo/board_name
echo "$MPC85XX_MODEL" > /tmp/sysinfo/model
}
-
-mpc85xx_board_name() {
- local name
-
- [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
- [ -z "$name" ] && name="unknown"
-
- echo "$name"
-}
diff --git a/target/linux/mvebu/base-files/lib/mvebu.sh b/target/linux/mvebu/base-files/lib/mvebu.sh
index 9096860dd4..fb3ddee4f5 100755
--- a/target/linux/mvebu/base-files/lib/mvebu.sh
+++ b/target/linux/mvebu/base-files/lib/mvebu.sh
@@ -71,12 +71,3 @@ mvebu_board_detect() {
echo "$MVEBU_BOARD_NAME" > /tmp/sysinfo/board_name
echo "$MVEBU_MODEL" > /tmp/sysinfo/model
}
-
-mvebu_board_name() {
- local name
-
- [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
- [ -z "$name" ] && name="unknown"
-
- echo "$name"
-}
diff --git a/target/linux/mxs/base-files/lib/mxs.sh b/target/linux/mxs/base-files/lib/mxs.sh
index ed5a527774..f6c3b22916 100644
--- a/target/linux/mxs/base-files/lib/mxs.sh
+++ b/target/linux/mxs/base-files/lib/mxs.sh
@@ -31,12 +31,3 @@ mxs_board_detect() {
echo "$MXS_BOARD_NAME" > /tmp/sysinfo/board_name
echo "$MXS_MODEL" > /tmp/sysinfo/model
}
-
-mxs_board_name() {
- local name
-
- [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
- [ -z "$name" ] && name="unknown"
-
- echo "$name"
-}
diff --git a/target/linux/oxnas/base-files/lib/oxnas.sh b/target/linux/oxnas/base-files/lib/oxnas.sh
index b0d79ea7cf..671dd05fa2 100755
--- a/target/linux/oxnas/base-files/lib/oxnas.sh
+++ b/target/linux/oxnas/base-files/lib/oxnas.sh
@@ -64,12 +64,3 @@ oxnas_board_detect() {
echo "$OXNAS_BOARD_NAME" > /tmp/sysinfo/board_name
echo "$OXNAS_MODEL" > /tmp/sysinfo/model
}
-
-oxnas_board_name() {
- local name
-
- [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
- [ -z "$name" ] && name="unknown"
-
- echo "$name"
-}
diff --git a/target/linux/ppc40x/base-files/lib/ppc40x.sh b/target/linux/ppc40x/base-files/lib/ppc40x.sh
deleted file mode 100755
index 8a6c487766..0000000000
--- a/target/linux/ppc40x/base-files/lib/ppc40x.sh
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh
-#
-# Copyright (C) 2010 OpenWrt.org
-#
-
-ppc40x_board_name() {
- local model
-
- model=$(awk 'BEGIN{FS="[ \t]+:[ \t]"} /model/ {print $2}' /proc/cpuinfo)
- echo $model
-}
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index 3eb66dc646..056fab9def 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -716,12 +716,3 @@ ramips_board_detect() {
echo "$RAMIPS_BOARD_NAME" > /tmp/sysinfo/board_name
echo "$RAMIPS_MODEL" > /tmp/sysinfo/model
}
-
-ramips_board_name() {
- local name
-
- [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
- [ -z "$name" ] && name="unknown"
-
- echo "${name}"
-}
diff --git a/target/linux/sunxi/base-files/lib/sunxi.sh b/target/linux/sunxi/base-files/lib/sunxi.sh
deleted file mode 100644
index dbb27feea0..0000000000
--- a/target/linux/sunxi/base-files/lib/sunxi.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-sunxi_board_name() {
- local name
-
- [ -f /tmp/sysinfo/board_name ] && name="$(cat /tmp/sysinfo/board_name)"
- [ -z "$name" ] && name="unknown"
-
- echo "$name"
-}