Laravel_pc_lycee/scripts/configure-avahi.sh

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