source: MondoRescue/branches/2.2.9/mindi-busybox/examples/var_service/getty_tty1/login.sh@ 2725

Last change on this file since 2725 was 2725, checked in by Bruno Cornec, 13 years ago
  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 371 bytes
Line 
1#!/bin/sh
2
3ttyname=`tty`
4ttybase="${ttyname%%[0123456789]*}" # strip numeric tail
5
6if 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"
10fi
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.