9de6396bd3
installed shell scripts. * Generate the to-be-installed script at build time, not at install time. We "build" for a reason -- to see what's going to be installed before we actually install it.
13 lines
297 B
Text
13 lines
297 B
Text
#!@SH@
|
|
#
|
|
# $NetBSD: find-lpt-port,v 1.2 2007/06/15 15:13:34 jlam 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
|