[Pkg-sysvinit-commits] r757 - in sysvinit/trunk/debian: . initscripts/etc/init.d

Petter Reinholdtsen pere at costa.debian.org
Sat Mar 4 15:20:27 UTC 2006


Author: pere
Date: 2006-03-04 15:20:26 +0000 (Sat, 04 Mar 2006)
New Revision: 757

Modified:
   sysvinit/trunk/debian/changelog
   sysvinit/trunk/debian/initscripts/etc/init.d/hostname.sh
Log:
  [ Petter Reinholdtsen ]
  * Silence init.d/hostname.sh when VERBOSE=no.

Modified: sysvinit/trunk/debian/changelog
===================================================================
--- sysvinit/trunk/debian/changelog	2006-02-20 10:01:28 UTC (rev 756)
+++ sysvinit/trunk/debian/changelog	2006-03-04 15:20:26 UTC (rev 757)
@@ -10,6 +10,9 @@
   * last:  Fix strncmp bug  (Closes: #353585)
   * initscripts.postrm: Don't remove /etc/init.d/mountdevsubfs
 
+  [ Petter Reinholdtsen ]
+  * Silence init.d/hostname.sh when VERBOSE=no.
+
  -- Thomas Hood <jdthood at yahoo.co.uk>  Mon, 13 Feb 2006 08:42:44 +0100
 
 sysvinit (2.86.ds1-12) unstable; urgency=low

Modified: sysvinit/trunk/debian/initscripts/etc/init.d/hostname.sh
===================================================================
--- sysvinit/trunk/debian/initscripts/etc/init.d/hostname.sh	2006-02-20 10:01:28 UTC (rev 756)
+++ sysvinit/trunk/debian/initscripts/etc/init.d/hostname.sh	2006-03-04 15:20:26 UTC (rev 757)
@@ -11,6 +11,7 @@
 
 PATH=/sbin:/bin
 
+. /lib/init/vars.sh
 . /lib/lsb/init-functions
 
 do_start () {
@@ -22,9 +23,9 @@
 	# And set it to 'localhost' if no setting was found
 	[ -z "$HOSTNAME" ] && HOSTNAME=localhost
 
-	log_action_begin_msg "Setting hostname to '$HOSTNAME'"
+	[ "$VERBOSE" != no ] && log_action_begin_msg "Setting hostname to '$HOSTNAME'"
 	hostname "$HOSTNAME"
-	log_action_end_msg $?
+	[ "$VERBOSE" != no ] && log_action_end_msg $?
 }
 
 case "$1" in




More information about the Pkg-sysvinit-commits mailing list