View | Details | Raw Unified | Return to bug 104312
Collapse All | Expand All

(-)comconsole/Makefile (-4 lines)
Lines 14-23 Link Here
14
MAINTAINER=	ports@FreeBSD.org
14
MAINTAINER=	ports@FreeBSD.org
15
COMMENT=	Setup your PC to use serial port COM1 as its console device
15
COMMENT=	Setup your PC to use serial port COM1 as its console device
16
16
17
BROKEN=		Modifies files in / and does not undo upon deinstall
18
DEPRECATED=	${BROKEN}
19
EXPIRATION_DATE=2006-12-01
20
21
NO_BUILD=	yes
17
NO_BUILD=	yes
22
NO_WRKSUBDIR=	yes
18
NO_WRKSUBDIR=	yes
23
19
(-)comconsole/pkg-deinstall (-25 / +2 lines)
Lines 1-29 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
[ "x$1" = "x" ] && exit 1
2
[ "x$1" = "x" ] && exit 1
3
if [ "x$2" = "xPOST-INSTALL" ]; then
4
	cat <<'EOF' >/boot.config
5
-P
6
EOF
7
	mv -f /etc/ttys /etc/ttys.last
8
	awk -f - /etc/ttys.last <<'EOF' >/etc/ttys
9
/^console/ {
10
	print "console	\"/usr/libexec/getty std.9600\"	vt100	on  secure"
11
	next
12
}
13
{
14
	print
15
}
16
EOF
17
fi
18
if [ "x$2" = "xDEINSTALL" ]; then
3
if [ "x$2" = "xDEINSTALL" ]; then
19
	mv -f /etc/ttys /etc/ttys.last
4
	sed -i '' "s|^console.*|console	none				unknown	off  secure|" /etc/ttys
20
	awk -f - /etc/ttys.last <<'EOF' >/etc/ttys
5
	rm -f /boot.config
21
/^console/ {
22
	print "console	none				unknown	off secure"
23
	next
24
}
25
{
26
	print
27
}
28
EOF
29
fi
6
fi
(-)comconsole/pkg-install (-25 / +2 lines)
Lines 1-29 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
[ "x$1" = "x" ] && exit 1
2
[ "x$1" = "x" ] && exit 1
3
if [ "x$2" = "xPOST-INSTALL" ]; then
3
if [ "x$2" = "xPOST-INSTALL" ]; then
4
	cat <<'EOF' >/boot.config
4
	echo "-P" > /boot.config
5
-P
5
	sed -i '' "s|^console.*|console	\"/usr/libexec/getty std.9600\"	vt100	on  secure|" /etc/ttys
6
EOF
7
	mv -f /etc/ttys /etc/ttys.last
8
	awk -f - /etc/ttys.last <<'EOF' >/etc/ttys
9
/^console/ {
10
	print "console	\"/usr/libexec/getty std.9600\"	vt100	on  secure"
11
	next
12
}
13
{
14
	print
15
}
16
EOF
17
fi
18
if [ "x$2" = "xDEINSTALL" ]; then
19
	mv -f /etc/ttys /etc/ttys.last
20
	awk -f - /etc/ttys.last <<'EOF' >/etc/ttys
21
/^console/ {
22
	print "console	none				unknown	off secure"
23
	next
24
}
25
{
26
	print
27
}
28
EOF
29
fi
6
fi

Return to bug 104312