summaryrefslogtreecommitdiff
path: root/utils/loginpr.sh
blob: 230cce2a9643d1d5cd997865c2697c4baa6a9181 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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