From cb58d049e0e121466fb2eb0694fa7b8e715b6f2c Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Tue, 19 Dec 2023 11:35:53 +0100 Subject: [PATCH] alsa: don't report failed module loads this will stop pakfire if the kernel was updated before the alsa update. Signed-off-by: Arne Fitzenreiter --- src/initscripts/packages/alsa | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/initscripts/packages/alsa b/src/initscripts/packages/alsa index 348e338462..8c0a2cbd24 100644 --- a/src/initscripts/packages/alsa +++ b/src/initscripts/packages/alsa @@ -24,12 +24,12 @@ case "$1" in start) + modprobe snd_pcm_oss >/dev/null 2>&1 + modprobe snd_mixer_oss >/dev/null 2>&1 boot_mesg "Starting ALSA... Restoring volumes..." - modprobe snd_pcm_oss >/dev/null 2>&1 || failed=1 - modprobe snd_mixer_oss >/dev/null 2>&1 || failed=1 - (exit ${failed}) - evaluate_retval loadproc /usr/sbin/alsactl restore + evaluate_retval + exit 0 ;; stop) boot_mesg "Stopping ALSA... Saving volumes..." -- 2.39.5