Last change
on this file since 3446 was 3320, checked in by Bruno Cornec, 10 years ago |
- Re-add (thanks git BTW) the 2.2.9 branch which had been destroyed in
the move to 3.0
|
-
Property svn:executable
set to
*
|
File size:
495 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 |
|
---|
3 | exec >/dev/null
|
---|
4 | exec 2>&1
|
---|
5 | exec </dev/null
|
---|
6 |
|
---|
7 | user=root
|
---|
8 | baud=38400
|
---|
9 | delay=3
|
---|
10 | export TERM=linux
|
---|
11 |
|
---|
12 | tty="/dev/${PWD##*/getty_}"
|
---|
13 |
|
---|
14 | if ! test -e "$tty"; then
|
---|
15 | exec env - sleep 32000
|
---|
16 | fi
|
---|
17 |
|
---|
18 | sleep "$delay"
|
---|
19 |
|
---|
20 | chown "$user" "$tty" # - devfs made happy
|
---|
21 |
|
---|
22 | exec <"$tty" >"$tty" 2>&1
|
---|
23 | # using . in order to be able to set env (TERM etc) in cfg
|
---|
24 | test -x ./cfg && . ./cfg
|
---|
25 |
|
---|
26 | exec \
|
---|
27 | env - "TERM=$TERM" PATH="$PATH" LOGIN_PRE_SUID_SCRIPT="$PWD/login.sh" \
|
---|
28 | softlimit \
|
---|
29 | setuidgid "$user" \
|
---|
30 | getty "$baud" "$tty" "$TERM"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.