#!/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
