summaryrefslogblamecommitdiffstats
path: root/sbin/asound_backup.sh
blob: 0e7912eb5c7d2d9a3301071f6354ff9b05f84127 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                      
#!/bin/sh

if [ "`ls /etc/asound/ | wc -l`" -lt 10 ]
then
	for i in `seq 0 9`
	do
		touch "/etc/asound/asound.conf.bak_${i}"
	done
fi

cat /etc/asound.conf > /etc/asound/"`ls -rt /etc/asound/ | head -n 1`"