diff options
| author | Serge Schneider <serge@raspberrypi.com> | 2024-11-21 15:57:13 +0000 |
|---|---|---|
| committer | Serge Schneider <serge@raspberrypi.com> | 2024-11-21 15:57:13 +0000 |
| commit | f2d397f3ba2112bc5a8b7051c8c31dac04b62013 (patch) | |
| tree | e2d0c52790dea4d8af0d2dc917b1545f89ff3c61 | |
| parent | 13c185cb7946efd667f6a516d2a493f24a9542a2 (diff) | |
stage2: set publish-workstation to yes in avahi-daemon.conf
| -rwxr-xr-x | stage2/01-sys-tweaks/01-run.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/stage2/01-sys-tweaks/01-run.sh b/stage2/01-sys-tweaks/01-run.sh index 2db14cc..961daed 100755 --- a/stage2/01-sys-tweaks/01-run.sh +++ b/stage2/01-sys-tweaks/01-run.sh @@ -72,3 +72,7 @@ DEBIAN_FRONTEND=noninteractive dpkg-reconfigure keyboard-configuration EOF sed -i 's/^#?Storage=.*/Storage=volatile/' "${ROOTFS_DIR}/etc/systemd/journald.conf" + +if [ -e "${ROOTFS_DIR}/etc/avahi/avahi-daemon.conf" ]; then + sed -i 's/^#?publish-workstation=.*/publish-workstation=yes/' "${ROOTFS_DIR}/etc/avahi/avahi-daemon.conf" +fi |
