diff options
author | Alejandro Pulver <alepulver@FreeBSD.org> | 2006-10-21 13:39:05 +0000 |
---|---|---|
committer | Alejandro Pulver <alepulver@FreeBSD.org> | 2006-10-21 13:39:05 +0000 |
commit | b4ddf7d22fceefafe5d06865c1f18014a1dce718 (patch) | |
tree | c7e5c6db8cb0fce888475b9854dde1ab0b62660f /sysutils/comconsole/pkg-deinstall | |
parent | e5883676e3bafe62d87085a2a6a380ebb583c6a7 (diff) |
Notes
Diffstat (limited to 'sysutils/comconsole/pkg-deinstall')
-rw-r--r-- | sysutils/comconsole/pkg-deinstall | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/sysutils/comconsole/pkg-deinstall b/sysutils/comconsole/pkg-deinstall index c8e021d4a689..f6f3e58682bb 100644 --- a/sysutils/comconsole/pkg-deinstall +++ b/sysutils/comconsole/pkg-deinstall @@ -1,29 +1,6 @@ #!/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 + sed -i '' "s|^console.*|console none unknown off secure|" /etc/ttys + rm -f /boot.config fi |