From e5ed70f2952aef83ddb751ee6f7c2f2c604cc533 Mon Sep 17 00:00:00 2001 From: Mayank Chhabra Date: Sat, 22 Aug 2020 17:45:59 +0530 Subject: [PATCH] Fix avahi allow-interfaces replacement command (#101) --- stage2/03-install-umbrel/01-run.sh | 7 +++++++ stage2/08-patch-avahi-daemon-config/01-run | 5 ----- 2 files changed, 7 insertions(+), 5 deletions(-) delete mode 100644 stage2/08-patch-avahi-daemon-config/01-run diff --git a/stage2/03-install-umbrel/01-run.sh b/stage2/03-install-umbrel/01-run.sh index 393fc96..2391532 100755 --- a/stage2/03-install-umbrel/01-run.sh +++ b/stage2/03-install-umbrel/01-run.sh @@ -19,6 +19,13 @@ on_chroot << EOF pip3 install docker-compose EOF +# Bind Avahi to eth0,wlan0 interfaces to prevent hostname cycling +# https://github.com/getumbrel/umbrel-os/issues/76 +echo "Binding Avahi to eth0 and wlan0 interfaces..." +on_chroot << EOF +sed -i "s/#allow-interfaces=eth0/allow-interfaces=eth0,wlan0/g;" "/etc/avahi/avahi-daemon.conf"; +EOF + # Install Umbrel echo "Installing Umbrel..." echo diff --git a/stage2/08-patch-avahi-daemon-config/01-run b/stage2/08-patch-avahi-daemon-config/01-run deleted file mode 100644 index 0cacf58..0000000 --- a/stage2/08-patch-avahi-daemon-config/01-run +++ /dev/null @@ -1,5 +0,0 @@ -#!/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