Magellan Linux

Contents of /trunk/mkinitrd-magellan/busybox/examples/var_service/getty_tty1/login.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 984 - (show annotations) (download) (as text)
Sun May 30 11:32:42 2010 UTC (13 years, 11 months ago) by niro
File MIME type: application/x-sh
File size: 371 byte(s)
-updated to busybox-1.16.1 and enabled blkid/uuid support in default config
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"

Properties

Name Value
svn:executable *
svn:keywords Id