diff options
author | Miles Bader <miles@gnu.org> | 1995-12-30 04:46:23 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-12-30 04:46:23 +0000 |
commit | 1d31ea0d45d5699a0a201fa4e3d448e1a2872909 (patch) | |
tree | 13703dfb6a9249562f255614702786d208f61dd1 /utils | |
parent | 72bb06eaff971ea48cfbbdbdf463c980644085d6 (diff) |
Initial revision
Diffstat (limited to 'utils')
-rw-r--r-- | utils/loginpr.sh | 18 |
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 |