From bc9d6b1fe19fa67bc441babe9a924dbcf993a250 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Fri, 11 Dec 2015 15:25:04 +0100 Subject: [alsa] force usage of the non-HDMI sound card if we have more than one --- .../alsa-default-card.service | 1 + .../alsa/data/opt/openslx/scripts/alsa-default_card | 20 +++++++------------- 2 files changed, 8 insertions(+), 13 deletions(-) create mode 120000 remote/modules/alsa/data/etc/systemd/system/multi-user.target.wants/alsa-default-card.service (limited to 'remote/modules') diff --git a/remote/modules/alsa/data/etc/systemd/system/multi-user.target.wants/alsa-default-card.service b/remote/modules/alsa/data/etc/systemd/system/multi-user.target.wants/alsa-default-card.service new file mode 120000 index 00000000..55e393fd --- /dev/null +++ b/remote/modules/alsa/data/etc/systemd/system/multi-user.target.wants/alsa-default-card.service @@ -0,0 +1 @@ +../alsa-default-card.service \ No newline at end of file diff --git a/remote/modules/alsa/data/opt/openslx/scripts/alsa-default_card b/remote/modules/alsa/data/opt/openslx/scripts/alsa-default_card index ebdf6043..1e28aa4c 100755 --- a/remote/modules/alsa/data/opt/openslx/scripts/alsa-default_card +++ b/remote/modules/alsa/data/opt/openslx/scripts/alsa-default_card @@ -12,7 +12,7 @@ if [ -w "/etc" ]; then elif [ -n "$HOME" ]; then FILE="${HOME}/.asoundrc" else - FILE="$(/usr/bin/getent passwd root | awk -F ':' '{print $6}')/.asoundrc" + FILE="$(getent passwd root | awk -F ':' '{print $6}')/.asoundrc" fi if [ -e "${FILE}" -a "x$1" != "x--force" ]; then @@ -31,17 +31,11 @@ if [ -z "${CARD}" ]; then fi cat > "${FILE}" <