projects
/
openwrt
/
staging
/
mans0n.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e70e6f6
)
ramips: disable watchdog on sysupgrade
author
Gabor Juhos
<
[email protected]
>
Sun, 3 Jul 2011 15:01:43 +0000
(15:01 +0000)
committer
Gabor Juhos
<
[email protected]
>
Sun, 3 Jul 2011 15:01:43 +0000
(15:01 +0000)
SVN-Revision: 27380
target/linux/ramips/base-files/lib/upgrade/platform.sh
patch
|
blob
|
history
diff --git
a/target/linux/ramips/base-files/lib/upgrade/platform.sh
b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index c541ea0a136c8a4a029ed02e77dcfd69499dc317..b701938f25ecccbcf2bc9d2bda81bde5614facbf 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