Last change
on this file since 3591 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:eol-style
set to
native
-
Property svn:executable
set to
*
|
File size:
371 bytes
|
Rev | Line | |
---|
[3320] | 1 | #!/bin/sh
|
---|
| 2 |
|
---|
| 3 | ttyname=`tty`
|
---|
| 4 | ttybase="${ttyname%%[0123456789]*}" # strip numeric tail
|
---|
| 5 |
|
---|
| 6 | if test "$ttybase" = "/dev/tty"; then
|
---|
| 7 | tail="${ttyname:8}"
|
---|
| 8 | echo "* Setting terminal device's owner to $LOGIN_UID:$LOGIN_GID"
|
---|
| 9 | chown "$LOGIN_UID:$LOGIN_GID" "/dev/vcs$tail" "/dev/vcsa$tail"
|
---|
| 10 | fi
|
---|
| 11 | # We can do this also, but login does it itself
|
---|
| 12 | # chown "$LOGIN_UID:$LOGIN_GID" "$ttyname"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.