summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/LinHES-system/bin
diff options
context:
space:
mode:
authorBob Igo <bob@stormlogic.com>2009-08-10 21:00:37 (GMT)
committerBob Igo <bob@stormlogic.com>2009-08-10 21:00:37 (GMT)
commit0157f62bdbfc25b73a902f63742f47f798422fa8 (patch)
tree46929129ab8c31c5cf222d8f3c77556705befecd /abs/core-testing/LinHES-system/bin
parent5b5a0e253e08a880dfbc4f3c9335428a297a282c (diff)
downloadlinhes_pkgbuild-0157f62bdbfc25b73a902f63742f47f798422fa8.zip
linhes_pkgbuild-0157f62bdbfc25b73a902f63742f47f798422fa8.tar.gz
linhes_pkgbuild-0157f62bdbfc25b73a902f63742f47f798422fa8.tar.bz2
Play a half second of silence before status audio, to work around an ALSA bug with digital audio; also restore /etc/asound.state, if available
Diffstat (limited to 'abs/core-testing/LinHES-system/bin')
-rw-r--r--abs/core-testing/LinHES-system/bin/backupcommon5
1 files changed, 3 insertions, 2 deletions
diff --git a/abs/core-testing/LinHES-system/bin/backupcommon b/abs/core-testing/LinHES-system/bin/backupcommon
index 3491b2a..d112341 100644
--- a/abs/core-testing/LinHES-system/bin/backupcommon
+++ b/abs/core-testing/LinHES-system/bin/backupcommon
@@ -16,7 +16,7 @@ BACKUP_LIST="./root ./home ./etc
RESTORE_LIST="./root ./home ./etc/mythtv/modules ./etc/lirc
./etc/X11/xorg.conf ./etc/asound.conf ./etc/default/aumix
./var/lib/alsa/asound.state ./etc/mplayer/mplayer.conf
- ./etc/localtime ./etc/timezone"
+ ./etc/localtime ./etc/timezone ./etc/asound.state"
# Both BLACK_LIST and IGNORE_LIST need to have only one file per line
# They also can't have any extra whitespace...
# Files and directories we should refuse to restore
@@ -55,6 +55,7 @@ UPDATE_SQL="/usr/share/mythtv/sql/0.11-to-0.12.sql"
UPDATE_FILES="$UTIL_DIR/restore_fixups.sh"
COMPRESSION=".gz"
SOUNDS="/usr/share/sounds"
+SILENCE="$SOUNDS/half_second_of_silence.wav"
PLAYER="/usr/bin/aplay"
#----------------------------------------------------------------------------
AWK=/bin/awk
@@ -98,7 +99,7 @@ require file+r+x $AWK $BASH $BUNZIP2 $BZIP2 $CAT $CHMOD $CHOWN $EGREP $GREP \
require dir+r+w+x /tmp "$BACKUP_DIR" "$DATABASE_DIR"
play_sound () {
- ($PLAYER $SOUNDS/$1 >& /dev/null)&
+ ($PLAYER $SILENCE $SOUNDS/$1 >& /dev/null)&
}
# Filter against an exclude list like the black list or the ignore list above