diff --git a/usr.sbin/spkrtest/Makefile b/usr.sbin/spkrtest/Makefile new file mode 100644 index 00000000000..fac0040a597 --- /dev/null +++ b/usr.sbin/spkrtest/Makefile @@ -0,0 +1,9 @@ +NOMAN= noman + +clean depend lint tags obj: + +install: + install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \ + ${.CURDIR}/spkrtest.sh ${DESTDIR}/${BINDIR}/spkrtest + +.include diff --git a/usr.sbin/spkrtest/spkrtest.sh b/usr.sbin/spkrtest/spkrtest.sh new file mode 100644 index 00000000000..319f3526760 --- /dev/null +++ b/usr.sbin/spkrtest/spkrtest.sh @@ -0,0 +1,38 @@ +: +# +# Test script for the speaker driver +# +# v1.0 by Eric S. Raymond (Feb 1990) +# v1.1 rightstuff contributed by Eric S. Tiedemann (est@snark.thyrsus.com) +# +reveille="t255l8c.f.afc~c.f.afc~c.f.afc.f.a..f.~c.f.afc~c.f.afc~c.f.afc~c.f.." +contact="f" +dance="t240dcdc/dev/speaker;; +contact) echo $contact >/dev/speaker;; +dance) echo $dance >/dev/speaker;; +loony) echo $loony >/dev/speaker;; +sinister) echo $sinister >/dev/speaker;; +rightstuff) echo $rightstuff >/dev/speaker;; +toccata) echo $toccata >/dev/speaker;; +startrek) echo $startrek >/dev/speaker;; +*) + echo "No such tune. Available tunes are:" + echo + echo "reveille -- Reveille" + echo "contact -- Contact theme from Close Encounters" + echo "dance -- Lord of the Dance (aka Simple Gifts)" + echo "loony -- Loony Toons theme" + echo "sinister -- standard villain's entrance music" + echo "rightstuff -- a trope from \"The Right Stuff\" score by Bill Conti" + echo "toccata -- opening bars of Bach's Toccata and Fugue in D Minor" + echo "startrek -- opening bars of the theme from Star Trek Classic" + ;; +esac