File: mkvcs

package info (click to toggle)
git 4.3.20-7
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,368 kB
  • ctags: 3,563
  • sloc: ansic: 22,937; sh: 5,024; makefile: 221
file content (22 lines) | stat: -rwxr-xr-x 460 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /bin/sh

# $Id: mkvcs,v 1.1.1.1 2004/11/10 17:44:38 ianb Exp $

# Check for Linux
if test `uname` != Linux; then
	echo You are not running Linux
	echo This is the result of 'uname -a' on this machine:
	uname -a
	echo mkvcs failed
	exit 1
fi

# Create /dev/vcsX and /dev/vcsaX.
for n in 0 1 2 3 4 5 6 7 8; do
	mknod --mode=0666 /dev/vcs$n c 7 $n
	mknod --mode=0666 /dev/vcsa$n c 7 `expr $n + 128`
done

chown root.tty /dev/vcs[0-8] /dev/vcsa[0-8]

echo done