---
name: comconsole
version: 0.1
origin: sysutils/comconsole
comment: Setup your PC to use serial port COM1 as its console device
arch: freebsd:9:x86:64
www: UNKNOWN
maintainer: ports@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 0
desc: "This package will setup your PC to use serial port COM1 as its console\ndevice.\nNote
  that this is a special package and you should pkg_add this on a newly\ninstalled
  system. This is intended to install from installer floppy disk\non a system without
  its own display nor keyboard. \n"
categories: [sysutils]
scripts:
  install: "#!/bin/sh\n[ \"x$1\" = \"x\" ] && exit 1\nif [ \"x$2\" = \"xPOST-INSTALL\"
    ]; then\n\techo \"-P\" > /boot.config\n\tsed -i '' \"s|^console.*|console\t\\\"/usr/libexec/getty
    std.9600\\\"\tvt100\ton  secure|\" /etc/ttys\nfi\n"
  deinstall: "#!/bin/sh\n[ \"x$1\" = \"x\" ] && exit 1\nif [ \"x$2\" = \"xDEINSTALL\"
    ]; then\n\tsed -i '' \"s|^console.*|console\tnone\t\t\t\tunknown\toff  secure|\"
    /etc/ttys\n\trm -f /boot.config\nfi\n"
