applets_sh/nologin: an applet implemented as shell script
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 10 Nov 2011 17:00:28 +0000 (18:00 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 10 Nov 2011 17:00:28 +0000 (18:00 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
applets_sh/nologin [new file with mode: 0755]

diff --git a/applets_sh/nologin b/applets_sh/nologin
new file mode 100755 (executable)
index 0000000..3768eaa
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+cat /etc/nologin.txt 2>/dev/null || echo "This account is not available"
+sleep 5
+exit 1