Skip to content

Commit

Permalink
Only copy networkd-dispatcher script if creating imaage
Browse files Browse the repository at this point in the history
  • Loading branch information
dkulp committed Nov 6, 2023
1 parent a598819 commit 6ad36d8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions SD/FPP_Install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -577,10 +577,6 @@ case "${OSVER}" in
ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
fi

echo '#!/bin/sh' > /etc/networkd-dispatcher/routable.d/ntpd
echo "/usr/bin/systemctl restart ntp" >> /etc/networkd-dispatcher/routable.d/ntpd
chmod +x /etc/networkd-dispatcher/routable.d/ntpd

#remove some things that were installed (not sure why)
apt-get remove -y --purge --autoremove --allow-change-held-packages pocketsphinx-en-us

Expand Down Expand Up @@ -1363,7 +1359,9 @@ if [ "$FPPPLATFORM" == "BeagleBone Black" ]; then
sed -i -e "s/getty.target//g" /lib/systemd/system/fppd.service
fi
cp /opt/fpp/etc/avahi/* /etc/avahi/services
cp /opt/fpp/etc/networkd-dispatcher/routable.d/* /etc/networkd-dispatcher/routable.d
if $isimage; then
cp /opt/fpp/etc/networkd-dispatcher/routable.d/* /etc/networkd-dispatcher/routable.d
fi

systemctl disable mosquitto
systemctl daemon-reload
Expand Down

0 comments on commit 6ad36d8

Please sign in to comment.