]> git.ipfire.org Git - ipfire-2.x.git/commit
alsa: Fixes Bug#13087 - module removal & path correction for asound.state file
authorAdolf Belka <adolf.belka@ipfire.org>
Mon, 8 May 2023 17:07:22 +0000 (19:07 +0200)
committerPeter Müller <peter.mueller@ipfire.org>
Thu, 11 May 2023 20:06:39 +0000 (20:06 +0000)
commit238a0468da6a6d1fdfa236969e5dd43029dcb85a
tree337c26db2ddd288eb49c622f6f2a56c3f2194bba
parent908f3783ec544ea0da998c5840a47d5f138882b2
alsa: Fixes Bug#13087 - module removal & path correction for asound.state file

- start_service added to install.sh and stop_service to uninstall.sh
   This ensures that the modules are loaded after install
- The /etc/asound.state file was touched by the install.sh cript but the alsactl store and
   restore commands have default location of /var/lib/alsa/ so the touch command created
   an asound.state file that was then not used subsequently. It also meant that the first
   start of alsa would fail as it would try and restore from /var/lib/alsa/asound.state
   but the file did not exist.
- This patch corrects the path for the touch command for asound.state
- The install.sh script also checks if /etc/asound.state, that was never used, exists and
   if it does removes it.
- Uninstalling alsa left the sound modules installed until a reboot was carried out.
   Uninstallation should unload the alsa kernel modules.
   This patch adds the modprobe -r commands to the uninstall.sh file to unload all the snd
   modules when alsa is uninstalled.
- make_backup and restore_backup commands added to ther install.sh and uninstall.sh scripts

Fixes: Bug#13087
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
src/paks/alsa/install.sh
src/paks/alsa/uninstall.sh