]> git.pld-linux.org Git - packages/watchdog.git/commitdiff
- new
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 14 Jan 2008 14:34:59 +0000 (14:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    watchdog.init -> 1.13
    watchdog.sysconfig -> 1.4

watchdog.init
watchdog.sysconfig

index dd0ffa433ca208ff986b25aa558cdf729cd60953..9272107d783baec17df2a3f38626bbc31514b853 100644 (file)
@@ -62,13 +62,15 @@ case "$1" in
                # minute to reboot cleanly, or it will be rebooted by the kernel. If
                # this behavior  isn't what you  want, just uncomment  the following
                # lines
-               if [ -z "$WATCHDOG_MODULES" ]; then
-                       # try to unload software module
-                       rmmod -s softdog > /dev/null 2>&1
-               else
-                       for module in $WATCHDOG_MODULES; do
-                               rmmod -s $module > /dev/null 2>&1
-                       done
+               if [ "$WATCHDOG_UNLOAD" = "yes" ]; then
+                       if [ -z "$WATCHDOG_MODULES" ]; then
+                               # try to unload software module
+                               rmmod -s softdog > /dev/null 2>&1
+                       else
+                               for module in $WATCHDOG_MODULES; do
+                                       rmmod -s $module > /dev/null 2>&1
+                               done
+                       fi
                fi
 
                rm -f /var/lock/subsys/watchdog >/dev/null 2>&1
index e06669db432deab2809d40abddb6fb6952839b4a..baa6838052c750c63f6b5d7bb1d2f89884d89087 100644 (file)
@@ -10,3 +10,6 @@ VERBOSE=no
 # WATCHDOG_MODULES - list of watchdog modules to be preloaded (space separated)
 # softdog module will be used is none set
 WATCHDOG_MODULES=
+
+# Unload watchdog kernel modules, not recommended
+# WATCHDOG_UNLOAD=yes
This page took 0.159373 seconds and 4 git commands to generate.