summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/loginpr.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/utils/loginpr.sh b/utils/loginpr.sh
new file mode 100644
index 00000000..230cce2a
--- /dev/null
+++ b/utils/loginpr.sh
@@ -0,0 +1,18 @@
+#!/bin/bash -noprofile
+#
+# Traditional prompting login program
+#
+# This can be made the system default by making it the shell for the
+# pseudo-user `login'.
+#
+
+prompt='
+login: '
+user=''
+
+while [ ! "$user" ]; do
+ echo -n "$prompt"
+ read user args || exit 0
+done
+
+exec login "$@" --paranoid --retry="$0" "$user" $args