summaryrefslogtreecommitdiff
path: root/alsaconf
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-11-23 02:59:18 +0100
committerJaroslav Kysela <perex@perex.cz>2010-11-23 15:48:50 +0100
commit81f015f5abdd8e6cfa75e37bd97eb22781019eec (patch)
tree7a91384f326a4720cec44cd1cce9cc0bfc75d41d /alsaconf
parentde7c3eff0e371ce155403bbcdcf81ee79266fa0f (diff)
alsactl: Move asound.state location to /var/lib/alsa
.... and add configure switch for it. /etc might be on a read-only partition which is not suitable for dynamic data such as the mixer settings. Hence move the location of asound.state to /var/lib. This is based on a patch from Ubuntu/Debian which hardcoded the pah in /var/lib. Signed-off-by: Lennart Poettering <mznyfn@0pointer.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'alsaconf')
-rw-r--r--alsaconf/alsaconf.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/alsaconf/alsaconf.in b/alsaconf/alsaconf.in
index ccc1b37..5c23787 100644
--- a/alsaconf/alsaconf.in
+++ b/alsaconf/alsaconf.in
@@ -956,8 +956,9 @@ If you have a big amplifier, lower your volumes or say no.
aplay -N $TESTSOUND
fi
fi
- if [ ! -r /etc/asound.state ]; then
- xecho "Saving the mixer setup used for this in /etc/asound.state."
+ mkdir -p -m 0755 @ASOUND_STATE_DIR@
+ if [ ! -r @ASOUND_STATE_DIR@/asound.state ]; then
+ xecho "Saving the mixer setup used for this in @ASOUND_STATE_DIR@/asound.state."
$sbindir/alsactl store
fi
clear