From 6afc04d74d14e953be236689100fbd133e73e613 Mon Sep 17 00:00:00 2001 From: BT Date: Fri, 21 Aug 2020 23:05:15 +0700 Subject: [PATCH] Prevent hostname cycling by binding interfaces in Avahi (#80) --- stage2/08-patch-avahi-daemon-config/01-run | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 stage2/08-patch-avahi-daemon-config/01-run diff --git a/stage2/08-patch-avahi-daemon-config/01-run b/stage2/08-patch-avahi-daemon-config/01-run new file mode 100644 index 0000000..0cacf58 --- /dev/null +++ b/stage2/08-patch-avahi-daemon-config/01-run @@ -0,0 +1,5 @@ +#!/bin/bash -e + +echo "Patching avahi-daemon.conf with fix to bind to specific interfaces" + +sed -i "s/#allow-interfaces=eth0/allow-interfaces=eth0,wlan0/g;" "${ROOTFS_DIR}"/etc/avahi/avahi-daemon.conf