Browse Source

Configure dhcpd to ignore virtual network interfaces (#858)

Co-authored-by: Aaron Dewes <aaron.dewes@web.de>
v0.3.14
Luke Childs 3 years ago
committed by GitHub
parent
commit
0d4addaf99
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      scripts/update/01-run.sh

8
scripts/update/01-run.sh

@ -61,6 +61,14 @@ if [[ ! -z "${UMBREL_OS:-}" ]]; then
DEBIAN_FRONTEND=noninteractive apt-get install unattended-upgrades -y
fi
# Make sure dhcpd ignores virtual network interfaces
dhcpd_conf="/etc/dhcpcd.conf"
dhcpd_rule="denyinterfaces veth*"
if [[ -f "${dhcpd_conf}" ]] && ! cat "${dhcpd_conf}" | grep --quiet "${dhcpd_rule}"; then
echo "${dhcpd_rule}" | tee -a "${dhcpd_conf}"
systemctl restart dhcpcd
fi
# This makes sure systemd services are always updated (and new ones are enabled).
UMBREL_SYSTEMD_SERVICES="${UMBREL_ROOT}/.umbrel-${RELEASE}/scripts/umbrel-os/services/*.service"
for service_path in $UMBREL_SYSTEMD_SERVICES; do

Loading…
Cancel
Save