summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2024-09-04 04:39:56 +0300
committerMaxim Devaev <[email protected]>2024-09-04 04:39:56 +0300
commitaf9023e8aab4b6b9e2c466793ee52d0c833ba02d (patch)
treee24312e00116527798c71710404e41b8622473ce /scripts
parent5c3ac4c9c100fe381591f8756fca3bd56b9ca9f7 (diff)
kvmd-bootconfig: provide ENABLE_AVAHI
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/kvmd-bootconfig8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/kvmd-bootconfig b/scripts/kvmd-bootconfig
index 09e95fc0..d97f10fa 100755
--- a/scripts/kvmd-bootconfig
+++ b/scripts/kvmd-bootconfig
@@ -131,6 +131,14 @@ if [ -n "$FIRSTBOOT$FIRST_BOOT" ]; then
fi
+# ========== Avahi ==========
+
+if [ -n "$ENABLE_AVAHI" ]; then
+ systemctl enable avahi-daemon || true
+ touch /boot/pikvm-reboot.txt
+fi
+
+
# ========== OTG serial ==========
if [ -n "$ENABLE_OTG_SERIAL" ]; then