SVN: rc-scripts/trunk/init/rcS-sulogin.conf

glen glen at pld-linux.org
Sun Oct 23 13:21:24 CEST 2011


Author: glen
Date: Sun Oct 23 13:21:22 2011
New Revision: 12387

Modified:
   rc-scripts/trunk/init/rcS-sulogin.conf
Log:
respect RUN_SULOGIN_ON_ERR from /etc/sysconfig/system

Modified: rc-scripts/trunk/init/rcS-sulogin.conf
==============================================================================
--- rc-scripts/trunk/init/rcS-sulogin.conf	(original)
+++ rc-scripts/trunk/init/rcS-sulogin.conf	Sun Oct 23 13:21:22 2011
@@ -10,7 +10,12 @@
 
 console owner
 script
-	exec /bin/sh
+	. /etc/rc.d/init.d/functions
+	if ! is_no "$RUN_SULOGIN_ON_ERR"; then
+		exec /sbin/sulogin
+	else
+		exec /bin/sh
+	fi
 end script
 
 post-stop script


More information about the pld-cvs-commit mailing list