projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ramips: disable watchdog on sysupgrade
[openwrt.git]
/
target
/
linux
/
ramips
/
base-files
/
lib
/
upgrade
/
platform.sh
diff --git
a/target/linux/ramips/base-files/lib/upgrade/platform.sh
b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index
c541ea0
..
b701938
100755
(executable)
--- a/
target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/
target/linux/ramips/base-files/lib/upgrade/platform.sh
@@
-36,3
+36,13
@@
platform_do_upgrade() {
;;
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
This page took
0.0255 seconds
and
4
git commands to generate.