pkgsrc/audio/rio/files/find-lpt-port

13 lines
298 B
Text
Raw Normal View History

2000-01-11 12:32:11 +01:00
#! /bin/sh
# $NetBSD: find-lpt-port,v 1.1 2000/01/11 11:32:11 agc Exp $
#
# Small shell script to find the lpt port easily
if [ -e /var/run/dmesg.boot ]; then
bootfile="/var/run/dmesg.boot"
else
bootfile='`dmesg`'
fi
@AWK@ '/^lp[at][0-9]+/ { gsub("\-.*", "", $5); print $5 }' < $bootfile
exit 0