Skip to content

Commit d70d5b7

Browse files
committed
dietpi-patches: BirdNET-Go: fix local sound card support on DietPi update
1 parent e67a555 commit d70d5b7

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.update/patches

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2720,6 +2720,14 @@ Patch_9_20()
27202720
fi
27212721
fi
27222722

2723+
# BirdNET-Go
2724+
if grep -q '^[[:blank:]]*aSOFTWARE_INSTALL_STATE\[127\]=2' /boot/dietpi/.installed
2725+
then
2726+
G_DIETPI-NOTIFY 2 'Fixing local sound card detection for BirdNET-Go'
2727+
G_EXEC usermod -aG audio birdnet
2728+
G_EXEC sed --follow-symlinks -i '/^PrivateDevices=/d' /etc/systemd/system/birdnet.service
2729+
fi
2730+
27232731
# Pi-hole v6 migration
27242732
# - /etc/pihole/pihole.toml indicates that Pi-hole has been upgraded to v6 already.
27252733
# - The /var/www/pihole symlink indicates that an instance installed via dietpi-software has not been migrated yet.

dietpi/dietpi-software

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12339,7 +12339,7 @@ _EOF_
1233912339
fi
1234012340

1234112341
# Service
12342-
cat << _EOF_ > /etc/systemd/system/birdnet.service
12342+
cat << _EOF_ > /etc/systemd/system/birdnet.service || exit 1
1234312343
[Unit]
1234412344
Description=BirdNet-Go
1234512345
Wants=network-online.target

0 commit comments

Comments
 (0)