FreeBSD Bugzilla – Attachment 71652 Details for
Bug 104312
[PATCH]: sysutils/comconsole: Fix files left behind
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
comconsole-0.1.diff
comconsole-0.1.diff (text/plain), 2.00 KB, created by
Frank J. Laszlo
on 2006-10-12 00:30:11 UTC
(
hide
)
Description:
comconsole-0.1.diff
Filename:
MIME Type:
Creator:
Frank J. Laszlo
Created:
2006-10-12 00:30:11 UTC
Size:
2.00 KB
patch
obsolete
>diff -NrU3 comconsole.orig/Makefile comconsole/Makefile >--- comconsole.orig/Makefile Wed Oct 11 16:48:56 2006 >+++ comconsole/Makefile Wed Oct 11 16:49:07 2006 >@@ -14,10 +14,6 @@ > MAINTAINER= ports@FreeBSD.org > COMMENT= Setup your PC to use serial port COM1 as its console device > >-BROKEN= Modifies files in / and does not undo upon deinstall >-DEPRECATED= ${BROKEN} >-EXPIRATION_DATE=2006-12-01 >- > NO_BUILD= yes > NO_WRKSUBDIR= yes > >diff -NrU3 comconsole.orig/pkg-deinstall comconsole/pkg-deinstall >--- comconsole.orig/pkg-deinstall Wed Oct 11 16:48:56 2006 >+++ comconsole/pkg-deinstall Wed Oct 11 17:19:09 2006 >@@ -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 >diff -NrU3 comconsole.orig/pkg-install comconsole/pkg-install >--- comconsole.orig/pkg-install Wed Oct 11 16:48:56 2006 >+++ comconsole/pkg-install Wed Oct 11 17:19:16 2006 >@@ -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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 104312
: 71652