diff options
author | Mathias Kresin <dev@kresin.me> | 2017-05-12 22:36:07 +0200 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2017-07-15 23:13:34 +0200 |
commit | f12a32630ff52b5e13397f64e9fb31708e97fb60 (patch) | |
tree | 46db1bb2606e05b40aaf2e43e7468531fa8df7b6 /target/linux/ipq806x/base-files/lib | |
parent | ced05ca9e092817f2f4d4fe25c5c56700838a3ad (diff) | |
download | upstream-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/ipq806x/base-files/lib')
-rw-r--r-- | target/linux/ipq806x/base-files/lib/upgrade/platform.sh | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/target/linux/ipq806x/base-files/lib/upgrade/platform.sh b/target/linux/ipq806x/base-files/lib/upgrade/platform.sh index 246361bbf6..7d8b178339 100644 --- a/target/linux/ipq806x/base-files/lib/upgrade/platform.sh +++ b/target/linux/ipq806x/base-files/lib/upgrade/platform.sh @@ -1,5 +1,3 @@ -. /lib/ipq806x.sh - PART_NAME=firmware REQUIRE_IMAGE_METADATA=1 @@ -11,9 +9,7 @@ platform_check_image() { } platform_do_upgrade() { - local board=$(ipq806x_board_name) - - case "$board" in + case "$(board_name)" in ap148 |\ ap-dk04.1-c1 |\ d7800 |\ @@ -43,9 +39,7 @@ platform_do_upgrade() { } platform_nand_pre_upgrade() { - local board=$(ipq806x_board_name) - - case "$board" in + case "$(board_name)" in nbg6817) zyxel_do_upgrade "$1" ;; |