Signed-off-by: Felix Fietkau <nbd@nbd.name>
touch /etc/config/ubootenv
touch /etc/config/ubootenv
. /lib/uboot-envtools.sh
. /lib/functions.sh
. /lib/uboot-envtools.sh
. /lib/functions.sh
-board=$(pistachio_board_name)
#
. /lib/functions/leds.sh
#
. /lib/functions/leds.sh
status_led="marduk:red:heartbeat"
status_led="marduk:red:heartbeat"
echo "$PISTACHIO_BOARD_NAME" > /tmp/sysinfo/board_name
echo "$PISTACHIO_MODEL" > /tmp/sysinfo/model
}
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"
-}
# See /LICENSE for more information.
#
# See /LICENSE for more information.
#
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()
{
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 $?
nand_do_platform_check $board $1
return $?
}
platform_nand_pre_upgrade() {
}
platform_nand_pre_upgrade() {
- local board=$(pistachio_board_name)
+ local board=$(board_name)