Skip to content

A live bird collage card for your Home Assistant dashboard.

adding firstrun.ini for php parsing

mcguirepr895d4bd0b06ee7
diff --git a/scripts/install_config.sh b/scripts/install_config.sh
index 26b407f2..2306ca93 100755
--- a/scripts/install_config.sh
+++ b/scripts/install_config.sh
@@ -5,6 +5,7 @@ set -e
trap 'exit 1' SIGINT SIGHUP
my_dir=$(realpath $(dirname $0))
+birdnetpi_dir=$(realpath $(dirname $my_dir))
BIRDNET_CONF="$(dirname ${my_dir})/birdnet.conf"
get_RECS_DIR() {
@@ -378,9 +379,11 @@ if [ -f ${BIRDNET_CONF} ];then
#install_birdnet_conf
[ -d /etc/birdnet ] || sudo mkdir /etc/birdnet
sudo ln -sf $(dirname ${my_dir})/birdnet.conf /etc/birdnet/birdnet.conf
+ grep -ve '^#' -e '^$' /etc/birdnet/birdnet.conf > ${birdnetpi_dir}/firstrun.ini
else
configure
install_birdnet_conf
[ -d /etc/birdnet ] || sudo mkdir /etc/birdnet
sudo ln -sf $(dirname ${my_dir})/birdnet.conf /etc/birdnet/birdnet.conf
+ grep -ve '^#' -e '^$' /etc/birdnet/birdnet.conf > ${birdnetpi_dir}/firstrun.ini
fi