|
|
|
|
8196
|
echo 'exit 0' >> /usr/bin/publish-to-avahi
|
8196
|
echo 'exit 0' >> /usr/bin/publish-to-avahi
|
8197
|
chmod +x /usr/bin/publish-to-avahi
|
8197
|
chmod +x /usr/bin/publish-to-avahi
|
8198
|
|
8198
|
|
|
|
8199
|
+ systemctl restart avahi-daemon
|
|
|
8200
|
+
|
8199
|
# publish regularly
|
8201
|
# publish regularly
|
8200
|
if ! grep -Fxq "publish-to-avahi" /etc/crontab; then
|
8202
|
if ! grep -Fxq "publish-to-avahi" /etc/crontab; then
|
8201
|
echo '* * * * * root /usr/bin/publish-to-avahi > /dev/null' >> /etc/crontab
|
8203
|
echo '* * * * * root /usr/bin/publish-to-avahi > /dev/null' >> /etc/crontab
|