Package: hddtemp
Version: 0.3-beta15-13
Severity: wishlist
Tags: patch

Please include the init-functions script from lsb-base to get a
consistent look of the output of all init scripts.


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-15
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages hddtemp depends on:
ii  debconf [debconf-2.0]        1.5.2       Debian configuration management sy
ii  grep                         2.5.1.ds2-5 GNU grep, egrep and fgrep
ii  libc6                        2.3.6-15    GNU C Library: Shared libraries
ii  sed                          4.1.5-1     The GNU sed stream editor

hddtemp recommends no packages.

-- debconf information excluded
--- hddtemp     2006-06-29 16:49:00.000000000 +0200
+++ /etc/init.d/hddtemp 2006-07-13 15:07:10.329632048 +0200
@@ -35,11 +35,13 @@
 
 [ -x "$DAEMON" ] || exit 0
 
+. /lib/lsb/init-functions
+
 case "$1" in
   start)
        # master switch
        if [ -n "$DAEMON_ARG" -o -n "$SYSLOG_ARG" ] ; then
-               echo -n "Starting $DESC:"
+               log_daemon_msg "Starting $DESC" "$NAME"
                CDROMS_LIST="$(grep "^drive name:" /proc/sys/dev/cdrom/info 
2>/dev/null | sed -e 's/^drive name:\t//g' -e 's/\t/ \/dev\//g')"
                CDROMS_LIST="$CDROMS_LIST $(grep -sl '^ide-scsi ' 
/proc/ide/hd*/driver | awk -F / '{ print "/dev/"$4 }')"
                for disk in $DISKS ; do
@@ -51,18 +53,21 @@
                done
                if [ -n "$DISKS_LIST" ] || [ -n "$DISKS_NOPROBE" ] ; then
                        start-stop-daemon --start --quiet --exec $DAEMON -- 
$DAEMON_ARG $SYSLOG_ARG $OPTIONS $DISKS_NOPROBE $DISKS_LIST
-                       echo " $DISKS_NOPROBE$DISKS_LIST."
+                       ret=$?
+                       log_progress_msg "$DISKS_NOPROBE$DISKS_LIST."
+                       log_end_msg $ret
                else
-                       echo " no disks with monitoring capability were found."
+                       log_progress_msg " no disks with monitoring capability 
were found."
+                       log_end_msg 0
                fi
        fi
        ;;
   stop)
        # master switch
        if [ "$RUN_DAEMON" = "true" -o "$RUN_DAEMON" = "yes" -o "$SYSLOG" != 
"0" ] ; then
-               echo -n "Stopping $DESC: "
+               log_daemon_msg "Stopping $DESC" "$NAME"
                start-stop-daemon --stop --oknodo --exec $DAEMON --retry 30
-               echo "done."
+               log_end_msg $?
        fi
        ;;
   reload|restart|force-reload)

Reply via email to