mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 15:32:33 +00:00
9fc0bcdd18
Signed-off-by: Felix Fietkau <nbd@nbd.name>
49 lines
896 B
Bash
Executable File
49 lines
896 B
Bash
Executable File
#
|
|
# Copyright (C) 2014-2016 OpenWrt.org
|
|
# Copyright (C) 2016 LEDE-Project.org
|
|
#
|
|
|
|
. /lib/mvebu.sh
|
|
|
|
RAMFS_COPY_DATA=/lib/mvebu.sh
|
|
REQUIRE_IMAGE_METADATA=1
|
|
|
|
platform_check_image() {
|
|
return 0
|
|
}
|
|
|
|
platform_do_upgrade() {
|
|
local board=$(mvebu_board_name)
|
|
|
|
case "$board" in
|
|
armada-385-linksys-caiman|armada-385-linksys-cobra|armada-385-linksys-rango|armada-385-linksys-shelby|armada-xp-linksys-mamba)
|
|
platform_do_upgrade_linksys "$ARGV"
|
|
;;
|
|
armada-388-clearfog)
|
|
platform_do_upgrade_clearfog "$ARGV"
|
|
;;
|
|
*)
|
|
default_do_upgrade "$ARGV"
|
|
;;
|
|
esac
|
|
}
|
|
platform_copy_config() {
|
|
local board=$(mvebu_board_name)
|
|
|
|
case "$board" in
|
|
armada-388-clearfog)
|
|
platform_copy_config_clearfog "$ARGV"
|
|
;;
|
|
esac
|
|
}
|
|
|
|
disable_watchdog() {
|
|
killall watchdog
|
|
( ps | grep -v 'grep' | grep '/dev/watchdog' ) && {
|
|
echo 'Could not disable watchdog'
|
|
return 1
|
|
}
|
|
}
|
|
|
|
append sysupgrade_pre_upgrade disable_watchdog
|