aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/lib
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2017-05-12 22:36:07 +0200
committerMathias Kresin <dev@kresin.me>2017-07-15 23:13:34 +0200
commitf12a32630ff52b5e13397f64e9fb31708e97fb60 (patch)
tree46db1bb2606e05b40aaf2e43e7468531fa8df7b6 /target/linux/ramips/base-files/lib
parentced05ca9e092817f2f4d4fe25c5c56700838a3ad (diff)
downloadupstream-f12a32630ff52b5e13397f64e9fb31708e97fb60.tar.gz
upstream-f12a32630ff52b5e13397f64e9fb31708e97fb60.tar.bz2
upstream-f12a32630ff52b5e13397f64e9fb31708e97fb60.zip
treewide: use the generic board_name function
Use the generic function instead ot the target specific ones. Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ramips/base-files/lib')
-rw-r--r--target/linux/ramips/base-files/lib/preinit/04_handle_checksumming4
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh9
2 files changed, 5 insertions, 8 deletions
diff --git a/target/linux/ramips/base-files/lib/preinit/04_handle_checksumming b/target/linux/ramips/base-files/lib/preinit/04_handle_checksumming
index 057fe45444..007abf79f6 100644
--- a/target/linux/ramips/base-files/lib/preinit/04_handle_checksumming
+++ b/target/linux/ramips/base-files/lib/preinit/04_handle_checksumming
@@ -6,9 +6,9 @@
# that happens, so this needs to run very early during boot.
do_checksumming_disable() {
- . /lib/ramips.sh
+ . /lib/functions.sh
- local board=$(ramips_board_name)
+ local board=$(board_name)
case "$board" in
wnce2001)
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 9b5da57146..e0a260216d 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -2,13 +2,10 @@
# Copyright (C) 2010 OpenWrt.org
#
-. /lib/ramips.sh
-
PART_NAME=firmware
-RAMFS_COPY_DATA=/lib/ramips.sh
platform_check_image() {
- local board=$(ramips_board_name)
+ local board=$(board_name)
local magic="$(get_magic_long "$1")"
[ "$#" -gt 1 ] && return 1
@@ -275,7 +272,7 @@ platform_check_image() {
}
platform_nand_pre_upgrade() {
- local board=$(ramips_board_name)
+ local board=$(board_name)
case "$board" in
ubnt-erx|\
@@ -286,7 +283,7 @@ platform_nand_pre_upgrade() {
}
platform_do_upgrade() {
- local board=$(ramips_board_name)
+ local board=$(board_name)
case "$board" in
hc5962|\