Laravel_pc_perso/scripts/configure-avahi.sh
2024-06-12 13:02:54 +02:00

6 lines
205 B
Bash

#!/usr/bin/env bash
sed -i "s/#browse-domains=.*/browse-domains=$1/" /etc/avahi/avahi-daemon.conf
sed -i "s/browse-domains=.*/browse-domains=$1/" /etc/avahi/avahi-daemon.conf
service avahi-daemon restart