]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
alsa: Fix bug#13087 remove services entry
authorAdolf Belka <adolf.belka@ipfire.org>
Mon, 8 May 2023 17:07:20 +0000 (19:07 +0200)
committerPeter Müller <peter.mueller@ipfire.org>
Thu, 11 May 2023 20:06:39 +0000 (20:06 +0000)
- alsa has an initscript but it is not starting and stopping a traditional daemon service.
   The initscript loads some alsa modules and then restores the asound.state file
- This patch updates the PAK_VER number and removes the services entry and explicitly
   adds alsa in for the initscript installation.
- Additionally this patch also adds the installation of a backup include file for alsa
   which savces the soundcards status file asound.state

Fixes: Bug#13087
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
lfs/alsa

index 2d89af880381235fe9586f25e109528efcdc3f08..db7afe4b17492d5031cfe0fc15d1b25db3ed28ad 100644 (file)
--- a/lfs/alsa
+++ b/lfs/alsa
@@ -37,11 +37,11 @@ DL_FILE    = $(THISAPP).tar.bz2
 DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 PROG       = alsa
-PAK_VER    = 15
+PAK_VER    = 16
 
 DEPS       =
 
-SERVICES   = alsa
+SERVICES   =
 
 TARGET     = $(DIR_INFO)/$(THISAPP)
 
@@ -104,6 +104,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        cd $(DIR_APP)/alsa-firmware-$(FVER) && make $(MAKETUNING) $(EXTRA_MAKE)
        cd $(DIR_APP)/alsa-firmware-$(FVER) && make install
        # install initscript
-       $(call INSTALL_INITSCRIPTS,$(SERVICES))
+       $(call INSTALL_INITSCRIPTS,alsa)
+       # install backup include file
+       install -v -m 644 ${DIR_SRC}/config/backup/includes/alsa \
+                       /var/ipfire/backup/addons/includes/alsa
        @rm -rf $(DIR_SRC)/alsa*
        @$(POSTBUILD)