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