From: Harald Hoyer Date: Fri, 26 Mar 2021 09:29:10 +0000 (+0100) Subject: fix(watchdog): shellcheck for modules.d/04watchdog X-Git-Tag: 054~261 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5a420e6183fd8e003e261f0349a1487ce315b10e;p=thirdparty%2Fdracut.git fix(watchdog): shellcheck for modules.d/04watchdog --- diff --git a/modules.d/04watchdog/.shchkdir b/modules.d/04watchdog/.shchkdir new file mode 100644 index 000000000..e69de29bb diff --git a/modules.d/04watchdog/watchdog.sh b/modules.d/04watchdog/watchdog.sh index 48adb3db4..22919eeb4 100755 --- a/modules.d/04watchdog/watchdog.sh +++ b/modules.d/04watchdog/watchdog.sh @@ -2,10 +2,10 @@ if [ -e /dev/watchdog ]; then if [ ! -e /tmp/watchdog_timeout ]; then wdctl -s 60 /dev/watchdog > /dev/null 2>&1 - > /tmp/watchdog_timeout + : > /tmp/watchdog_timeout fi info "Triggering watchdog" - > /dev/watchdog + : > /dev/watchdog else modprobe ib700wdt modprobe i6300esb