summaryrefslogtreecommitdiff
path: root/sysutils/comconsole/pkg-deinstall
blob: c8e021d4a6895fff1381e960b3954422cad86721 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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