dev/bash/scripts/alarm_ring.sh

12 lines
264 B
Bash
Executable File

#!/bin/bash
bkp=`date +%s`
/usr/sbin/alsactl store -f /tmp/alarm.asound-$bkp
/usr/sbin/alsactl restore -f /home/kolan/etc/asound.alarm.state
/usr/bin/mplayer /home/kolan/etc/"$@"
/usr/sbin/alsactl restore -f /tmp/alarm.asound-$bkp
rm -f /tmp/alarm.asound-$bkp