]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
alsa: don't report failed module loads
authorArne Fitzenreiter <arne_f@ipfire.org>
Tue, 19 Dec 2023 10:35:53 +0000 (11:35 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Tue, 19 Dec 2023 10:35:53 +0000 (11:35 +0100)
this will stop pakfire if the kernel was updated before the alsa update.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
src/initscripts/packages/alsa

index 348e3384621759f0f0c988885eccafa25234044a..8c0a2cbd24ebfbb6d272df81407aa7e696d34345 100644 (file)
 
 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..."