diff options
author | SADA Kenji <sada@FreeBSD.org> | 1998-12-27 18:04:33 +0000 |
---|---|---|
committer | SADA Kenji <sada@FreeBSD.org> | 1998-12-27 18:04:33 +0000 |
commit | 77e31f46a7b064c5d1dfd4dee04dd9e79d997023 (patch) | |
tree | 8dd7f50c3ae2a4930bb956d2b570631581482201 /sysutils/comconsole/pkg-install | |
parent | cc07454a97ca87c2983909fd92ffd87e11b4eb45 (diff) |
Notes
Diffstat (limited to 'sysutils/comconsole/pkg-install')
-rw-r--r-- | sysutils/comconsole/pkg-install | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sysutils/comconsole/pkg-install b/sysutils/comconsole/pkg-install new file mode 100644 index 000000000000..c8e021d4a689 --- /dev/null +++ b/sysutils/comconsole/pkg-install @@ -0,0 +1,29 @@ +#!/bin/sh +[ "x$1" = "x" ] && exit 1 +if [ "x$2" = "xPOST-INSTALL" ]; then + cat <<'EOF' >/boot.config +-P +EOF + mv -f /etc/ttys /etc/ttys.last + awk -f - /etc/ttys.last <<'EOF' >/etc/ttys +/^console/ { + print "console \"/usr/libexec/getty std.9600\" vt100 on secure" + next +} +{ + print +} +EOF +fi +if [ "x$2" = "xDEINSTALL" ]; then + mv -f /etc/ttys /etc/ttys.last + awk -f - /etc/ttys.last <<'EOF' >/etc/ttys +/^console/ { + print "console none unknown off secure" + next +} +{ + print +} +EOF +fi |