ath79: sysupgrade: remove obsolete sysupgrade watchdog kill
authorMathias Kresin <dev@kresin.me>
Mon, 7 May 2018 18:51:13 +0000 (20:51 +0200)
committerMathias Kresin <dev@kresin.me>
Thu, 17 May 2018 05:40:19 +0000 (07:40 +0200)
The watchdog kill command was meant for busybox watchdog. Busybox watchdog
was replaced by the procd watchdog mid 2013 with commit df7ce9301a25
("busybox: disable the watchdog utility by default"), which makes the kill
command obsolete since quite some time.

Signed-off-by: Mathias Kresin <dev@kresin.me>
target/linux/ath79/base-files/lib/upgrade/platform.sh

index b2b55e64e33dd728119f9035ddfc016c6b961b7e..88c09410e78fcf0dcf8123c7305cc742a7b09505 100644 (file)
@@ -212,13 +212,3 @@ 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