aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/base-files/lib
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-03-17 16:21:30 +0100
committerFelix Fietkau <nbd@nbd.name>2017-03-22 11:43:21 +0100
commit7e798dab56546d6f8e2fe0f913ff41e8f010af51 (patch)
treea3d7680454f5f4973dafce23f20515d1f67f796b /target/linux/lantiq/base-files/lib
parentaa95d6cd20f7e08420562b9747c197c2eac1d2e2 (diff)
downloadupstream-7e798dab56546d6f8e2fe0f913ff41e8f010af51.tar.gz
upstream-7e798dab56546d6f8e2fe0f913ff41e8f010af51.tar.bz2
upstream-7e798dab56546d6f8e2fe0f913ff41e8f010af51.zip
lantiq: remove lantiq_board_name, use the generic function instead
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/lantiq/base-files/lib')
-rw-r--r--target/linux/lantiq/base-files/lib/functions/lantiq.sh9
-rwxr-xr-xtarget/linux/lantiq/base-files/lib/upgrade/platform.sh4
2 files changed, 1 insertions, 12 deletions
diff --git a/target/linux/lantiq/base-files/lib/functions/lantiq.sh b/target/linux/lantiq/base-files/lib/functions/lantiq.sh
index 89f194b39e..5d760d1d30 100644
--- a/target/linux/lantiq/base-files/lib/functions/lantiq.sh
+++ b/target/linux/lantiq/base-files/lib/functions/lantiq.sh
@@ -9,15 +9,6 @@ lantiq_board_model() {
echo "$model"
}
-lantiq_board_name() {
- local name
-
- [ -f /tmp/sysinfo/board_name ] && name=$(cat /tmp/sysinfo/board_name)
- [ -z "$name" ] && name="unknown"
-
- echo "$name"
-}
-
lantiq_get_dt_led() {
local label
local ledpath
diff --git a/target/linux/lantiq/base-files/lib/upgrade/platform.sh b/target/linux/lantiq/base-files/lib/upgrade/platform.sh
index d4db8d2bf7..9158fa742f 100755
--- a/target/linux/lantiq/base-files/lib/upgrade/platform.sh
+++ b/target/linux/lantiq/base-files/lib/upgrade/platform.sh
@@ -1,5 +1,3 @@
-. /lib/functions/lantiq.sh
-
PART_NAME=firmware
REQUIRE_IMAGE_METADATA=1
@@ -8,7 +6,7 @@ platform_check_image() {
}
platform_pre_upgrade() {
- local board=$(lantiq_board_name)
+ local board=$(board_name)
case "$board" in
BTHOMEHUBV2B|BTHOMEHUBV3A|BTHOMEHUBV5A|P2812HNUF* )