SVN: rc-scripts/trunk/rc.d/init.d/allowlogin

glen glen at pld-linux.org
Mon Dec 17 18:35:13 CET 2007


Author: glen
Date: Mon Dec 17 18:35:12 2007
New Revision: 9144

Modified:
   rc-scripts/trunk/rc.d/init.d/allowlogin
Log:
- implement status

Modified: rc-scripts/trunk/rc.d/init.d/allowlogin
==============================================================================
--- rc-scripts/trunk/rc.d/init.d/allowlogin	(original)
+++ rc-scripts/trunk/rc.d/init.d/allowlogin	Mon Dec 17 18:35:12 2007
@@ -24,8 +24,20 @@
 		cp -fp /etc/nologin /etc/nologin.boot
 	fi
 	;;
+  status)
+	if is_yes "$DELAY_LOGIN"; then
+		nls "Delay login is enabled"
+	else
+		nls "Delay login is not enabled"
+	fi
+	if [ -f /etc/nologin ]; then
+		nls "Users are not allowed to login right now"
+	else
+		nls "Users are allowed to login right now"
+	fi
+	;;
   *)
-	msg_usage "$0 {start|stop}"
+	msg_usage "$0 {start|stop|status}"
 	exit 3
 esac
 


More information about the pld-cvs-commit mailing list