mpc85xx: use image metadata
[openwrt/openwrt.git] / target / linux / mpc85xx / base-files / lib / upgrade / platform.sh
1 #
2 # Copyright (C) 2011 OpenWrt.org
3 #
4
5 PART_NAME=firmware
6 REQUIRE_IMAGE_METADATA=1
7
8 platform_check_image() {
9 return 0
10 }
11
12 # use default for platform_do_upgrade()
13
14 disable_watchdog() {
15 killall watchdog
16 ( ps | grep -v 'grep' | grep '/dev/watchdog' ) && {
17 echo 'Could not disable watchdog'
18 return 1
19 }
20 }
21
22 append sysupgrade_pre_upgrade disable_watchdog