summaryrefslogtreecommitdiff
path: root/utils/loginpr.sh
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-01-23 19:51:11 +0000
committerMiles Bader <miles@gnu.org>1996-01-23 19:51:11 +0000
commit64f0df3dade811b23605ed20640130f3bee26a1d (patch)
tree0a1b9e649b8ef2e846f15dac20f9e57d1a230810 /utils/loginpr.sh
parentcda658f8dc9b2203fcf3ea442b9780c03c7d27a0 (diff)
Pass the appropiate -R options to login, and -p.
Only print a preceeding newline if this is a retry.
Diffstat (limited to 'utils/loginpr.sh')
-rw-r--r--utils/loginpr.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/utils/loginpr.sh b/utils/loginpr.sh
index 230cce2a..59924082 100644
--- a/utils/loginpr.sh
+++ b/utils/loginpr.sh
@@ -6,13 +6,15 @@
# pseudo-user `login'.
#
-prompt='
-login: '
+prompt='login: '
user=''
-while [ ! "$user" ]; do
+test "$_LOGIN_RETRY" && echo ''
+unset _LOGIN_RETRY
+
+until [ "$user" ]; do
echo -n "$prompt"
read user args || exit 0
done
-exec login "$@" --paranoid --retry="$0" "$user" $args
+exec login "$@" -p --paranoid -R-aSHELL="$0" -R-aMOTD -R-p -R-e_LOGIN_RETRY=yes "$user" $args