mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
alsa: Don't fail on upgrading the package
If alsa has not been started on a system the upgrade script fails with exit code 1 and prevents Pakfire from completing the update. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -22,8 +22,19 @@
|
||||
############################################################################
|
||||
#
|
||||
. /opt/pakfire/lib/functions.sh
|
||||
mv /etc/asound.state /tmp
|
||||
|
||||
# Backup /etc/asound.state
|
||||
if [ -e "/etc/asound.state" ]; then
|
||||
mv /etc/asound.state /tmp/asound.state
|
||||
fi
|
||||
|
||||
extract_backup_includes
|
||||
./uninstall.sh
|
||||
./install.sh
|
||||
mv /tmp/asound.state /etc
|
||||
|
||||
# Restore asound.state
|
||||
if [ -e "/tmp/asound.state" ]; then
|
||||
mv /tmp/asound.state /etc/asound.state
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user