]> git.proxmox.com Git - mirror_smartmontools-debian.git/commitdiff
Don't warn about being disabled unless verbose
authorGiuseppe Iuculano <iuculano@debian.org>
Tue, 13 Jul 2010 10:32:21 +0000 (12:32 +0200)
committerGiuseppe Iuculano <iuculano@debian.org>
Tue, 13 Jul 2010 10:32:21 +0000 (12:32 +0200)
Closes: #583386
debian/smartmontools.init

index 155db62dc4005db87117a1f0b871b8f3a76f72f3..a64b0e6e06a50840295992383341d013831e7876 100644 (file)
@@ -25,6 +25,7 @@ PIDFILE=/var/run/smartd.pid
 
 RET=0
 
+[ -r /etc/default/rcS ] && . /etc/default/rcS
 [ -r /etc/default/smartmontools ] && . /etc/default/smartmontools
 
 smartd_opts="--pidfile $PIDFILE $smartd_opts"
@@ -43,7 +44,7 @@ enable_smart() {
 
 check_start_smartd_option() {
   if [ ! "$start_smartd" = "yes" ]; then
-    log_warning_msg "Not starting S.M.A.R.T. daemon smartd, disabled via /etc/default/smartmontools"
+    [ "$VERBOSE" = "yes" ] && log_warning_msg "Not starting S.M.A.R.T. daemon smartd, disabled via /etc/default/smartmontools"
     return 1
   else
     return 0