aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/comconsole/pkg-install
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/comconsole/pkg-install')
-rw-r--r--sysutils/comconsole/pkg-install27
1 files changed, 2 insertions, 25 deletions
diff --git a/sysutils/comconsole/pkg-install b/sysutils/comconsole/pkg-install
index c8e021d4a689..c45c5b04411d 100644
--- a/sysutils/comconsole/pkg-install
+++ b/sysutils/comconsole/pkg-install
@@ -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
+ echo "-P" > /boot.config
+ sed -i '' "s|^console.*|console \"/usr/libexec/getty std.9600\" vt100 on secure|" /etc/ttys
fi