]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(watchdog): shellcheck for modules.d/04watchdog
authorHarald Hoyer <harald@redhat.com>
Fri, 26 Mar 2021 09:29:10 +0000 (10:29 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 26 Mar 2021 12:24:17 +0000 (13:24 +0100)
modules.d/04watchdog/.shchkdir [new file with mode: 0644]
modules.d/04watchdog/watchdog.sh

diff --git a/modules.d/04watchdog/.shchkdir b/modules.d/04watchdog/.shchkdir
new file mode 100644 (file)
index 0000000..e69de29
index 48adb3db40c7ff72a7ffc32c0273204719b72fbd..22919eeb483fda6d1b4dcd6db0ec46f8a166fbb9 100755 (executable)
@@ -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