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

Petter Reinholdtsen pere at alioth.debian.org
Wed Sep 2 21:51:10 UTC 2009


Author: pere
Date: 2009-09-02 21:51:10 +0000 (Wed, 02 Sep 2009)
New Revision: 1701

Modified:
   sysvinit/trunk/debian/changelog
   sysvinit/trunk/debian/initscripts/etc/init.d/bootlogs
Log:
Implement status argument to init.d/bootlogs.

Modified: sysvinit/trunk/debian/changelog
===================================================================
--- sysvinit/trunk/debian/changelog	2009-09-01 21:34:23 UTC (rev 1700)
+++ sysvinit/trunk/debian/changelog	2009-09-02 21:51:10 UTC (rev 1701)
@@ -98,6 +98,7 @@
     scripts on removal to follow policy and keep lintian happy, even
     though removing initscripts will leave the system unbootable.
     Update lintian overrides to reflect this.
+  * Implement status argument to init.d/bootlogs.
 
  -- Kel Modderman <kel at otaku42.de>  Wed, 02 Sep 2009 02:03:12 +1000
 

Modified: sysvinit/trunk/debian/initscripts/etc/init.d/bootlogs
===================================================================
--- sysvinit/trunk/debian/initscripts/etc/init.d/bootlogs	2009-09-01 21:34:23 UTC (rev 1700)
+++ sysvinit/trunk/debian/initscripts/etc/init.d/bootlogs	2009-09-02 21:51:10 UTC (rev 1701)
@@ -44,6 +44,14 @@
 	fi
 }
 
+do_status () {
+	if [ -f /var/run/motd ] && [ ! -f /dev/.udev.log ] ; then
+		return 0
+	else
+		return 4
+	fi
+}
+
 case "$1" in
   start|"")
 	do_start
@@ -55,6 +63,9 @@
   stop)
 	# No-op
 	;;
+  status)
+	do_status
+	;;
   *)
 	echo "Usage: bootmisc.sh [start|stop]" >&2
 	exit 3




More information about the Pkg-sysvinit-commits mailing list