aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/octeon/base-files/lib/upgrade/platform.sh
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-01-29 23:19:41 +0000
committerFelix Fietkau <nbd@openwrt.org>2016-01-29 23:19:41 +0000
commitbeda11255b27d2ec089aae4d8248000f213d323b (patch)
tree0104bf6230cdda52838c7b268f0eb5f1eeba5e0e /target/linux/octeon/base-files/lib/upgrade/platform.sh
parentf32de94e0a46e06586dfd4066465a9425fa64304 (diff)
downloadupstream-beda11255b27d2ec089aae4d8248000f213d323b.tar.gz
upstream-beda11255b27d2ec089aae4d8248000f213d323b.tar.bz2
upstream-beda11255b27d2ec089aae4d8248000f213d323b.zip
octeon: get rid of /lib/functions/octeon.sh hackery, use sysinfo directly
Fixes sysupgrade Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48558
Diffstat (limited to 'target/linux/octeon/base-files/lib/upgrade/platform.sh')
-rwxr-xr-xtarget/linux/octeon/base-files/lib/upgrade/platform.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/target/linux/octeon/base-files/lib/upgrade/platform.sh b/target/linux/octeon/base-files/lib/upgrade/platform.sh
index 4cb03bc984..91763ce1c6 100755
--- a/target/linux/octeon/base-files/lib/upgrade/platform.sh
+++ b/target/linux/octeon/base-files/lib/upgrade/platform.sh
@@ -2,8 +2,6 @@
# Copyright (C) 2014 OpenWrt.org
#
-. /lib/functions/octeon.sh
-
platform_get_rootfs() {
local rootfsdev
@@ -24,7 +22,7 @@ platform_get_rootfs() {
}
platform_copy_config() {
- local board="$(octeon_board_name)"
+ local board="$(cat /tmp/sysinfo/board_name)"
case "$board" in
erlite)
@@ -60,7 +58,7 @@ platform_do_flash() {
platform_do_upgrade() {
local tar_file="$1"
- local board=$(octeon_board_name)
+ local board=$(cat /tmp/sysinfo/board_name)
local rootfs="$(platform_get_rootfs)"
local kernel=
@@ -83,7 +81,7 @@ platform_do_upgrade() {
}
platform_check_image() {
- local board=$(octeon_board_name)
+ local board=$(cat /tmp/sysinfo/board_name)
case "$board" in
erlite | \