diff options
author | Bill Nottingham <notting@redhat.com> | 1999-10-25 21:30:32 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-10-25 21:30:32 +0000 |
commit | a3eb45ccdb83d9afdcca5c1c8c0ac7b99f2d5616 (patch) | |
tree | 2396dff09c5836c2dcc93f0a3b72854d7e7ff7c0 /src/consoletype.1 | |
parent | 1cdcdf23deae9d776966f60f5a24c5c624cd0073 (diff) | |
download | initscripts-a3eb45ccdb83d9afdcca5c1c8c0ac7b99f2d5616.tar initscripts-a3eb45ccdb83d9afdcca5c1c8c0ac7b99f2d5616.tar.gz initscripts-a3eb45ccdb83d9afdcca5c1c8c0ac7b99f2d5616.tar.bz2 initscripts-a3eb45ccdb83d9afdcca5c1c8c0ac7b99f2d5616.tar.xz initscripts-a3eb45ccdb83d9afdcca5c1c8c0ac7b99f2d5616.zip |
fix console checking with new consoletype program (from jakub)
Diffstat (limited to 'src/consoletype.1')
-rw-r--r-- | src/consoletype.1 | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/consoletype.1 b/src/consoletype.1 new file mode 100644 index 00000000..b14b03b0 --- /dev/null +++ b/src/consoletype.1 @@ -0,0 +1,28 @@ +.TH CONSOLETYPE 1 "Red Hat Software" "RHS" \" -*- nroff -*- +.SH NAME +.B consoletype +\- print type of the console connected to standard input +.SH SYNOPSIS +.B consoletype +.SH DESCRIPTION +.B consoletype +prints the type of console connected to standard input. It prints +.I vt +if console is a virtual terminal (/dev/tty* or /dev/console device if not on +a serial console), +.I serial +if standard input is a serial console (/dev/console or /dev/ttyS*) and +.I pty +if standard input is a pseudo terminal. +.SH RETURN VALUE +.B consoletype +returns +.TP +.I 0 +if on virtual terminal +.TP +.I 1 +if on serial console +.TP +.I 2 +if on a pseudo terminal. |