From 66c222b3be8e921163143360b6e2f726e8290031 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Sun, 28 Apr 2013 10:27:14 +0200 Subject: [PATCH] Remove pca and speaker device remains (both deleted). --- Makefile_upgrade.inc | 9 + etc/apmd.conf | 3 - share/man/man4/man4.i386/Makefile | 2 - share/man/man4/man4.i386/spkr.4 | 237 -------------------------- sys/platform/pc32/include/pcaudioio.h | 83 --------- sys/platform/pc32/include/speaker.h | 31 ---- usr.sbin/Makefile | 1 - usr.sbin/spkrtest/Makefile | 7 - usr.sbin/spkrtest/spkrtest.8 | 49 ------ usr.sbin/spkrtest/spkrtest.sh | 113 ------------ 10 files changed, 9 insertions(+), 526 deletions(-) delete mode 100644 share/man/man4/man4.i386/spkr.4 delete mode 100644 sys/platform/pc32/include/pcaudioio.h delete mode 100644 sys/platform/pc32/include/speaker.h delete mode 100644 usr.sbin/spkrtest/Makefile delete mode 100644 usr.sbin/spkrtest/spkrtest.8 delete mode 100644 usr.sbin/spkrtest/spkrtest.sh diff --git a/Makefile_upgrade.inc b/Makefile_upgrade.inc index 4b3d48a86f..5b07d0f275 100644 --- a/Makefile_upgrade.inc +++ b/Makefile_upgrade.inc @@ -2149,6 +2149,15 @@ TO_REMOVE+=/usr/share/man/man4/spic.4.gz TO_REMOVE+=/usr/include/machine/ioctl_ctx.h TO_REMOVE+=/usr/include/machine/wtio.h TO_REMOVE+=/usr/include/machine/if_wl_wavelan.h +TO_REMOVE+=/usr/include/machine/pcaudioio.h +TO_REMOVE+=/usr/include/machine/speaker.h +TO_REMOVE+=/usr/share/man/cat4/i386/spkr.4.gz +TO_REMOVE+=/usr/share/man/man4/i386/spkr.4.gz +TO_REMOVE+=/usr/share/man/cat4/i386/speaker.4.gz +TO_REMOVE+=/usr/share/man/man4/i386/speaker.4.gz +TO_REMOVE+=/usr/sbin/spkrtest +TO_REMOVE+=/usr/share/man/cat8/spkrtest.8.gz +TO_REMOVE+=/usr/share/man/man8/spkrtest.8.gz .if ${MACHINE_ARCH} == "x86_64" TO_REMOVE+=/usr/sbin/stlstats diff --git a/etc/apmd.conf b/etc/apmd.conf index ebf7e48f26..b94696266e 100644 --- a/etc/apmd.conf +++ b/etc/apmd.conf @@ -1,7 +1,6 @@ # apmd Configuration File # # $FreeBSD: src/etc/apmd.conf,v 1.2.2.2 2001/08/13 17:30:29 nsayer Exp $ -# $DragonFly: src/etc/apmd.conf,v 1.2 2003/06/17 04:24:45 dillon Exp $ # apm_event SUSPENDREQ { @@ -38,11 +37,9 @@ apm_event NORMRESUME, STANDBYRESUME { # Sample entries for battery state monitoring #apm_battery 5% discharging { # exec "logger -p user.emerg battery status critical!"; -# exec "echo T250L8CE-GE-C >/dev/speaker"; #} #apm_battery 1% discharging { # exec "logger -p user.emerg battery low - emergency suspend"; -# exec "echo T250L16B+BA+AG+GF+FED+DC+CC >/dev/speaker"; # exec "apm -z"; #} #apm_battery 99% charging { diff --git a/share/man/man4/man4.i386/Makefile b/share/man/man4/man4.i386/Makefile index 6c377c3af8..175479883b 100644 --- a/share/man/man4/man4.i386/Makefile +++ b/share/man/man4/man4.i386/Makefile @@ -20,7 +20,6 @@ MAN= ar.4 \ pnpbios.4 \ sbni.4 \ spic.4 \ - spkr.4 \ sr.4 \ stl.4 \ tx.4 \ @@ -31,7 +30,6 @@ MLINKS+=ar.4 if_ar.4 MLINKS+=ep.4 if_ep.4 MLINKS+=lnc.4 if_lnc.4 MLINKS+=sbni.4 if_sbni.4 -MLINKS+=spkr.4 speaker.4 MLINKS+=sr.4 if_sr.4 MLINKS+=tx.4 if_tx.4 MLINKS+=vx.4 if_vx.4 diff --git a/share/man/man4/man4.i386/spkr.4 b/share/man/man4/man4.i386/spkr.4 deleted file mode 100644 index 7027599c36..0000000000 --- a/share/man/man4/man4.i386/spkr.4 +++ /dev/null @@ -1,237 +0,0 @@ -.\" -.\" $FreeBSD: src/share/man/man4/man4.i386/spkr.4,v 1.13.2.6 2001/12/17 11:30:13 ru Exp $ -.\" $DragonFly: src/share/man/man4/man4.i386/spkr.4,v 1.6 2007/05/17 08:19:01 swildner Exp $ -.\" -.Dd November 7, 1993 -.Dt SPKR 4 i386 -.Os -.Sh NAME -.Nm speaker , -.Nm spkr -.Nd console speaker device driver -.Sh SYNOPSIS -.Cd pseudo-device speaker -.In machine/speaker.h -.Sh DESCRIPTION -The speaker device driver allows applications to control the PC console -speaker on an -.Tn IBM-PC Ns --compatible -machine running -.Fx . -.Pp -Only one process may have this device open at any given time; -.Xr open 2 -and -.Xr close 2 -are used to lock and relinquish it. -An attempt to open when -another process has the device locked will return -1 with an -.Er EBUSY -error -indication. -Writes to the device are interpreted as `play strings' in a -simple ASCII melody notation. -An -.Xr ioctl 2 -request -for tone generation at arbitrary -frequencies is also supported. -.Pp -Sound-generation does not monopolize the processor; in fact, the driver -spends most of its time sleeping while the PC hardware is emitting -tones. -Other processes may emit beeps while the driver is running. -.Pp -Applications may call -.Xr ioctl 2 -on a speaker file descriptor to control the -speaker driver directly; definitions for the -.Xr ioctl 2 -interface are in -.In machine/speaker.h . -The -.Li tone_t -structure used in these calls has two fields, -specifying a frequency (in Hz) and a duration (in 1/100ths of a second). -A frequency of zero is interpreted as a rest. -.Pp -At present there are two such -.Xr ioctl 2 -calls. -.Dv SPKRTONE -accepts a pointer to a -single tone structure as third argument and plays it. -.Dv SPKRTUNE -accepts a -pointer to the first of an array of tone structures and plays them in -continuous sequence; this array must be terminated by a final member with -a zero duration. -.Pp -The play-string language is modeled on the PLAY statement conventions of -.Tn IBM -Advanced BASIC 2.0. The -.Li MB , -.Li MF , -and -.Li X -primitives of PLAY are not -useful in a timesharing environment and are omitted. -The `octave-tracking' -feature and the slur mark are new. -.Pp -There are 84 accessible notes numbered 1-84 in 7 octaves, each running from -C to B, numbered 0-6; the scale is equal-tempered A440 and octave 3 starts -with middle C. By default, the play function emits half-second notes with the -last 1/16th second being `rest time'. -.Pp -Play strings are interpreted left to right as a series of play command groups; -letter case is ignored. -Play command groups are as follows: -.Bl -tag -width CDEFGABxx -.It Li CDEFGAB -Letters A through G cause the corresponding note to be played in the -current octave. A note letter may optionally be followed by an -.Dq Em "accidental sign" , -one of # + or -; the first two of these cause it to be sharped one -half-tone, the last causes it to be flatted one half-tone. It may -also be followed by a time value number and by sustain dots (see -below). Time values are interpreted as for the L command below. -.It Ns Li O Sy n -If -.Sy n -is numeric, this sets the current octave. -.Sy n -may also be one of -.Li L -or -.Li N -to enable or disable octave-tracking (it is disabled by default). -When octave-tracking is on, interpretation of a pair of letter notes -will change octaves if necessary in order to make the smallest -possible jump between notes. -Thus ``olbc'' will be played as -``olb>c'', and ``olcb'' as ``olc, < and O[0123456]. (The octave-locking -feature is not supported in -.Tn IBM -BASIC.) -.It Li > -Bump the current octave up one. -.It Li < -Drop the current octave down one. -.It Ns Li N Sy n -Play note -.Sy n , -.Sy n -being 1 to 84 or 0 for a rest of current time value. -May be followed by sustain dots. -.It Ns Li L Sy n -Sets the current time value for notes. The default is -.Li L4 , -quarter or crotchet notes. -The lowest possible value is 1; values up -to 64 are accepted. -.Li L1 -sets whole notes, -.Li L2 -sets half notes, -.Li L4 -sets quarter notes, etc. -.It Ns Li P Sy n -Pause (rest), with -.Sy n -interpreted as for -.Li L Sy n . -May be followed by -sustain dots. May also be written -.Li ~ . -.It Ns Li T Sy n -Sets the number of quarter notes per minute; default is 120. Musical -names for common tempi are: -.Bd -literal -offset indent - Tempo Beats Per Minute -very slow Larghissimo - Largo 40-60 - Larghetto 60-66 - Grave - Lento - Adagio 66-76 -slow Adagietto - Andante 76-108 -medium Andantino - Moderato 108-120 -fast Allegretto - Allegro 120-168 - Vivace - Veloce - Presto 168-208 -very fast Prestissimo -.Ed -.It Li M[LNS] -Set articulation. -.Li MN -.Li ( N -for normal) is the default; the last 1/8th of -the note's value is rest time. -You can set -.Li ML -for legato (no rest space) or -.Li MS -for staccato (\(14 rest space). -.El -.Pp -Notes (that is, -.Li CDEFGAB -or -.Li N -command character groups) may be followed by -sustain dots. -Each dot causes the note's value to be lengthened by one-half -for each one. -Thus, a note dotted once is held for 3/2 of its undotted value; -dotted twice, it is held 9/4, and three times would give 27/8. -.Pp -A note and its sustain dots may also be followed by a slur mark (underscore). -This causes the normal micro-rest after the note to be filled in, slurring it -to the next one. (The slur feature is not supported in -.Tn IBM -BASIC.) -.Pp -Whitespace in play strings is simply skipped and may be used to separate -melody sections. -.Sh FILES -.Bl -tag -width /dev/speakerxx -.It Pa /dev/speaker -speaker device file -.El -.Sh SEE ALSO -.Xr spkrtest 8 -.Sh HISTORY -The -.Nm -device appeared in -.Fx 1.0 . -.Sh AUTHORS -.An Eric S. Raymond Aq esr@snark.thyrsus.com -June 1990 -.Sh "PORTED BY" -.An Andrew A. Chernov Aq ache@astral.msk.su -.Sh BUGS -Due to roundoff in the pitch tables and slop in the tone-generation and timer -hardware (neither of which was designed for precision), neither pitch accuracy -nor timings will be mathematically exact. -There is no volume control. -.Pp -The action of two or more sustain dots does not reflect standard musical -notation, in which each dot adds half the value of the previous dot -modifier, not half the value of the note as modified. Thus, a note dotted -once is held for 3/2 of its undotted value; dotted twice, it is held 7/4, -and three times would give 15/8. The multiply-by-3/2 interpretation, -however, is specified in the -.Tn IBM -BASIC manual and has been retained for -compatibility. -.Pp -In play strings which are very long (longer than your system's physical I/O -blocks) note suffixes or numbers may occasionally be parsed incorrectly due -to crossing a block boundary. diff --git a/sys/platform/pc32/include/pcaudioio.h b/sys/platform/pc32/include/pcaudioio.h deleted file mode 100644 index 506fc34c71..0000000000 --- a/sys/platform/pc32/include/pcaudioio.h +++ /dev/null @@ -1,83 +0,0 @@ -/*- - * Copyright (c) 1994 Søren Schmidt - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer - * in this position and unchanged. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT - * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * $FreeBSD: src/sys/i386/include/pcaudioio.h,v 1.10 1999/08/28 00:44:20 peter Exp $ - * $DragonFly: src/sys/platform/pc32/include/pcaudioio.h,v 1.2 2003/06/17 04:28:35 dillon Exp $ - */ - -#ifndef _MACHINE_PCAUDIOIO_H_ -#define _MACHINE_PCAUDIOIO_H_ - -#include - -typedef struct audio_prinfo { - unsigned sample_rate; /* samples per second */ - unsigned channels; /* # of channels (interleaved) */ - unsigned precision; /* sample size in bits */ - unsigned encoding; /* encoding method used */ - - unsigned gain; /* volume level: 0 - 255 */ - unsigned port; /* input/output device */ - unsigned _fill1[4]; - - unsigned samples; /* samples played */ - unsigned eof; /* ?!? */ - unsigned char pause; /* !=0 pause, ==0 continue */ - unsigned char error; /* !=0 if overflow/underflow */ - unsigned char waiting; /* !=0 if others wants access */ - unsigned char _fill2[3]; - - unsigned char open; /* is device open */ - unsigned char active; /* !=0 if sound hardware is active */ -} audio_prinfo_t; - -typedef struct audio_info { - audio_prinfo_t play; - audio_prinfo_t record; - unsigned monitor_gain; - unsigned _fill[4]; -} audio_info_t; - -#define AUDIO_ENCODING_ULAW (1) /* u-law encoding */ -#define AUDIO_ENCODING_ALAW (2) /* A-law encoding */ -#define AUDIO_ENCODING_RAW (3) /* linear encoding */ - -#define AUDIO_MIN_GAIN (0) /* minimum volume value */ -#define AUDIO_MAX_GAIN (255) /* maximum volume value */ - -#define AUDIO_INITINFO(i) memset((void*)i, 0xff, sizeof(audio_info_t)) - -#define AUDIO_GETINFO _IOR('A', 1, audio_info_t) -#define AUDIO_SETINFO _IOWR('A', 2, audio_info_t) -#define AUDIO_DRAIN _IO('A', 3) -#define AUDIO_FLUSH _IO('A', 4) - -/* compatibility to /dev/audio */ -#define AUDIO_COMPAT_DRAIN _IO('P', 1) -#define AUDIO_COMPAT_FLUSH _IO('P', 0) - -#endif /* !_MACHINE_PCAUDIOIO_H_ */ diff --git a/sys/platform/pc32/include/speaker.h b/sys/platform/pc32/include/speaker.h deleted file mode 100644 index e1e7c85430..0000000000 --- a/sys/platform/pc32/include/speaker.h +++ /dev/null @@ -1,31 +0,0 @@ -/* - * speaker.h -- interface definitions for speaker ioctl() - * - * v1.4 by Eric S. Raymond (esr@snark.thyrsus.com) Aug 1993 - * modified for FreeBSD by Andrew A. Chernov - * - * $FreeBSD: src/sys/i386/include/speaker.h,v 1.6 1999/08/28 00:44:26 peter Exp $ - * $DragonFly: src/sys/platform/pc32/include/speaker.h,v 1.2 2003/06/17 04:28:36 dillon Exp $ - */ - -#ifndef _MACHINE_SPEAKER_H_ -#define _MACHINE_SPEAKER_H_ - -#include - -#define SPKRTONE _IOW('S', 1, tone_t) /* emit tone */ -#define SPKRTUNE _IO('S', 2) /* emit tone sequence*/ - -typedef struct -{ - int frequency; /* in hertz */ - int duration; /* in 1/100ths of a second */ -} -tone_t; - -/* - * Strings written to the speaker device are interpreted as tunes and played; - * see the spkr(4) man page for details. - */ - -#endif /* !_MACHINE_SPEAKER_H_ */ diff --git a/usr.sbin/Makefile b/usr.sbin/Makefile index ba8578f4fb..55ce734e89 100644 --- a/usr.sbin/Makefile +++ b/usr.sbin/Makefile @@ -175,7 +175,6 @@ SUBDIR+=apm \ mptable \ rndcontrol \ sicontrol \ - spkrtest .endif .if ${MACHINE_ARCH} == "i386" diff --git a/usr.sbin/spkrtest/Makefile b/usr.sbin/spkrtest/Makefile deleted file mode 100644 index e5d501b988..0000000000 --- a/usr.sbin/spkrtest/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -# $FreeBSD: src/usr.sbin/spkrtest/Makefile,v 1.8.2.2 2001/04/25 14:05:16 ru Exp $ -# $DragonFly: src/usr.sbin/spkrtest/Makefile,v 1.4 2004/11/16 22:21:15 joerg Exp $ - -SCRIPTS=spkrtest.sh -MAN= spkrtest.8 - -.include diff --git a/usr.sbin/spkrtest/spkrtest.8 b/usr.sbin/spkrtest/spkrtest.8 deleted file mode 100644 index 06dd7facfd..0000000000 --- a/usr.sbin/spkrtest/spkrtest.8 +++ /dev/null @@ -1,49 +0,0 @@ -.\" Copyright (c) May 1995 Wolfram Schneider . Berlin. -.\" All rights reserved. -.\" -.\" Redistribution and use in source and binary forms, with or without -.\" modification, are permitted provided that the following conditions -.\" are met: -.\" 1. Redistributions of source code must retain the above copyright -.\" notice, this list of conditions and the following disclaimer. -.\" 2. Redistributions in binary form must reproduce the above copyright -.\" notice, this list of conditions and the following disclaimer in the -.\" documentation and/or other materials provided with the distribution. -.\" -.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -.\" SUCH DAMAGE. -.\" -.\" $FreeBSD: src/usr.sbin/spkrtest/spkrtest.8,v 1.12 2002/07/14 14:46:16 charnier Exp $ -.\" $DragonFly: src/usr.sbin/spkrtest/spkrtest.8,v 1.3 2004/11/16 22:21:15 joerg Exp $ -.Dd July 23, 1995 -.Dt SPKRTEST 8 -.Os -.Sh NAME -.Nm spkrtest -.Nd test script for the speaker driver -.Sh DESCRIPTION -The -.Nm -utility is an easy to use test script for the speaker driver. -.Sh FILES -.Bl -tag -width /dev/speakerxx -.It Pa /dev/speaker -speaker device file -.El -.Sh SEE ALSO -.Xr dialog 1 , -.Xr spkr 4 -.Sh HISTORY -The -.Nm -utility appeared in -.Fx 1.0 diff --git a/usr.sbin/spkrtest/spkrtest.sh b/usr.sbin/spkrtest/spkrtest.sh deleted file mode 100644 index 7dc9bf230d..0000000000 --- a/usr.sbin/spkrtest/spkrtest.sh +++ /dev/null @@ -1,113 +0,0 @@ -#!/bin/sh - -# -# Copyright (c) 2002 The FreeBSD Project -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND -# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE -# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -# SUCH DAMAGE. -# - -# -# Inspired on spkrtest.pl, rewritten from scratch to remove perl dependency -# $VER: spkrtest 0.3 (9.5.2002) Riccardo "VIC" Torrini -# $FreeBSD: head/usr.sbin/spkrtest/spkrtest.sh 217364 2011-01-13 17:30:18Z nwhitehorn $ -# - -cleanExit() { - rm -f ${choices} - exit ${1:-0} -} - -trap 'cleanExit 1' 1 2 3 5 15 # HUP, INT, QUIT, TRAP, TERM - -choices=${TMP:-/tmp}/_spkrtest_choices.$$ -speaker=/dev/speaker - -test -w ${speaker} -if [ $? -ne 0 ] -then - echo "You have no write access to $speaker or the speaker device is" - echo "not enabled in kernel. Cannot play any melody! See spkr(4)." - sleep 2 - cleanExit 1 -fi - -/usr/bin/dialog --title "Speaker test" --checklist \ - "Please select the melodies you wish to play (space for select)" \ - 0 0 0 \ - reveille "Reveille" OFF \ - contact "Contact theme from Close Encounters" OFF \ - dance "Lord of the Dance (aka Simple Gifts)" OFF \ - loony "Loony Toons theme" OFF \ - sinister "Standard villain's entrance music" OFF \ - rightstuff "A trope from 'The Right Stuff' score by Bill Conti" OFF \ - toccata "Opening bars of Bach's Toccata and Fugue in D Minor" OFF \ - startrek "Opening bars of the theme from Star Trek Classic" OFF \ - 2> ${choices} || cleanExit 0 - -echo "" -tunes="`cat ${choices} | tr -d '\"'`" -for tune in ${tunes:-DEFAULT} -do - case ${tune:-NULL} in - DEFAULT) - title="(default melody)" - music="ec" - ;; - reveille) - title="Reveille" - music="t255l8c.f.afc~c.f.afc~c.f.afc.f.a..f.~c.f.afc~c.f.afc~c.f.afc~c.f.." - ;; - contact) - title="Contact theme from Close Encounters" - music="f" - ;; - dance) - title="Lord of the Dance (aka Simple Gifts)" - music="t240dcdc ${speaker} - sleep 1 -done -cleanExit 0 -- 2.41.0