summaryrefslogtreecommitdiffstats
path: root/sbin/asound_backup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/asound_backup.sh')
-rwxr-xr-xsbin/asound_backup.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/sbin/asound_backup.sh b/sbin/asound_backup.sh
new file mode 100755
index 0000000..0e7912e
--- /dev/null
+++ b/sbin/asound_backup.sh
@@ -0,0 +1,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`"