[Pkg-sysvinit-commits] r329 - sysvinit/trunk/debian/initscripts/etc/init.d

Thomas Hood jdthood-guest at costa.debian.org
Tue Nov 29 09:54:56 UTC 2005


Author: jdthood-guest
Date: 2005-11-29 09:54:56 +0000 (Tue, 29 Nov 2005)
New Revision: 329

Modified:
   sysvinit/trunk/debian/initscripts/etc/init.d/bootmisc.sh
Log:
chgrp on dmesg log file; use which to test for runnability

Modified: sysvinit/trunk/debian/initscripts/etc/init.d/bootmisc.sh
===================================================================
--- sysvinit/trunk/debian/initscripts/etc/init.d/bootmisc.sh	2005-11-28 22:13:54 UTC (rev 328)
+++ sysvinit/trunk/debian/initscripts/etc/init.d/bootmisc.sh	2005-11-29 09:54:56 UTC (rev 329)
@@ -50,10 +50,11 @@
 	fi
 
 	# Save kernel messages in /var/log/dmesg
-	if [ -x /bin/dmesg ] || [ -x /sbin/dmesg ]
+	if which dmesg >/dev/null 2>&1
 	then
 		savelog -q -p -c 5 /var/log/dmesg
 		dmesg -s 524288 > /var/log/dmesg
+		chgrp adm /var/log/dmesg || :
 	elif [ -c /dev/klog ]
 	then
 		savelog -q -p -c 5 /var/log/dmesg
@@ -61,6 +62,7 @@
 		dmesg_pid=$!
 		sleep 1
 		kill $dmesg_pid
+		[ -f /var/log/dmesg ] && { chgrp adm /var/log/dmesg || : ; }
 	fi
 
 	# Remove ".clean" files.




More information about the Pkg-sysvinit-commits mailing list