Skip to content

Commit

Permalink
Newer systemd has different syntax than older systemd
Browse files Browse the repository at this point in the history
  • Loading branch information
dkulp committed Jun 25, 2023
1 parent 8ba7c7a commit 49fbcf1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions SD/FPP_Install.sh
Expand Up @@ -409,6 +409,11 @@ case "${OSVER}" in
# Need to make sure there is configuration for eth0 or uninstalling dhcpclient will cause network to drop
rm -f /etc/systemd/network/50-default.network
wget -O /etc/systemd/network/50-default.network https://raw.githubusercontent.com/FalconChristmas/fpp/master/etc/systemd/network/50-default.network
if [ "$FPPPLATFORM" == "BeagleBone Black" ]; then
sed -e 's/LinkLocalAddressing=fallback/LinkLocalAddressing=yes/' /etc/systemd/network/50-default.network
fi


systemctl reload systemd-networkd
apt-get remove -y --purge --autoremove --allow-change-held-packages ${PACKAGE_REMOVE}

Expand Down
2 changes: 2 additions & 0 deletions SD/README.BBB
Expand Up @@ -54,6 +54,8 @@ apt-get install wget
# This MAY cause the beagle to change IP addresses, reboot to get things to settle and continue
rm -f /etc/systemd/network/50-default.network
wget -O /etc/systemd/network/50-default.network https://raw.githubusercontent.com/FalconChristmas/fpp/master/etc/systemd/network/50-default.network
sed -e 's/LinkLocalAddressing=fallback/LinkLocalAddressing=yes/' /etc/systemd/network/50-default.network

systemctl reload systemd-networkd

systemctl unmask systemd-networkd
Expand Down
2 changes: 1 addition & 1 deletion etc/systemd/network/50-default.network
Expand Up @@ -6,7 +6,7 @@ RequiredForOnline=no

[Network]
DHCP=ipv4
LinkLocalAddressing=yes
LinkLocalAddressing=fallback

[DHCPv4]
ClientIdentifier=mac

0 comments on commit 49fbcf1

Please sign in to comment.