diff options
Diffstat (limited to 'target/linux/pistachio/base-files/lib')
-rwxr-xr-x | target/linux/pistachio/base-files/lib/pistachio.sh | 8 | ||||
-rwxr-xr-x | target/linux/pistachio/base-files/lib/upgrade/platform.sh | 6 |
2 files changed, 2 insertions, 12 deletions
diff --git a/target/linux/pistachio/base-files/lib/pistachio.sh b/target/linux/pistachio/base-files/lib/pistachio.sh index f9a16db3ed..9390a4c0ff 100755 --- a/target/linux/pistachio/base-files/lib/pistachio.sh +++ b/target/linux/pistachio/base-files/lib/pistachio.sh @@ -32,11 +32,3 @@ pistachio_board_detect() { echo "$PISTACHIO_BOARD_NAME" > /tmp/sysinfo/board_name echo "$PISTACHIO_MODEL" > /tmp/sysinfo/model } - -pistachio_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/pistachio/base-files/lib/upgrade/platform.sh b/target/linux/pistachio/base-files/lib/upgrade/platform.sh index 5a886fbee6..2ddac783f3 100755 --- a/target/linux/pistachio/base-files/lib/upgrade/platform.sh +++ b/target/linux/pistachio/base-files/lib/upgrade/platform.sh @@ -6,15 +6,13 @@ # See /LICENSE for more information. # -. /lib/pistachio.sh - RAMFS_COPY_BIN="/usr/sbin/fw_printenv /usr/sbin/fw_setenv /bin/mkdir /bin/dmesg /bin/sed /bin/grep" RAMFS_COPY_DATA="/etc/fw_env.config" REQUIRE_IMAGE_METADATA=0 platform_check_image() { - local board=$(pistachio_board_name) + local board=$(board_name) nand_do_platform_check $board $1 return $? @@ -32,7 +30,7 @@ platform_pre_upgrade() { } platform_nand_pre_upgrade() { - local board=$(pistachio_board_name) + local board=$(board_name) case "$board" in marduk) |