blob: ddf775f4ae83c7c30c102984eee21ffb12b2c891 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
#!/bin/sh
. /lib/apm821xx.sh
PART_NAME=firmware
RAMFS_COPY_DATA=/lib/apm821xx.sh
platform_check_image() {
local board=$(apm821xx_board_name)
[ "$#" -gt 1 ] && return 1
case "$board" in
mr24)
merakinand_do_platform_check $board "$1"
return $?;
;;
*)
;;
esac
echo "Sysupgrade is not yet supported on $board."
return 1
}
platform_pre_upgrade() {
local board=$(apm821xx_board_name)
case "$board" in
mr24)
merakinand_do_upgrade "$1"
;;
*)
;;
esac
}
platform_do_upgrade() {
local board=$(apm821xx_board_name)
case "$board" in
*)
default_do_upgrade "$ARGV"
;;
esac
}
platform_copy_config() {
local board=$(apm821xx_board_name)
case "$board" in
*)
;;
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
|