summaryrefslogtreecommitdiff
path: root/source/ap/alsa-utils/doinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source/ap/alsa-utils/doinst.sh')
-rw-r--r--source/ap/alsa-utils/doinst.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/ap/alsa-utils/doinst.sh b/source/ap/alsa-utils/doinst.sh
new file mode 100644
index 00000000..0ee74150
--- /dev/null
+++ b/source/ap/alsa-utils/doinst.sh
@@ -0,0 +1,6 @@
+if [ -r etc/asound.state -a ! -r var/lib/alsa/asound.state -a ! -L etc/asound.state ]; then
+ mv etc/asound.state var/lib/alsa
+fi
+# Better a dangling symlink than for nobody to know where this went:
+rm -f etc/asound.state
+( cd etc && ln -sf ../var/lib/alsa/asound.state . )