first commit

This commit is contained in:
2022-12-27 21:59:06 +01:00
commit 7ae0b00241
29 changed files with 1157 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#!/bin/bash
service dbus start
service avahi-daemon start
dos2unix /opt/config/names.csv
while read LINE; do
PUBLISH_HOSTNAME=$(echo $LINE | cut -d ";" -f 1)
PUBLISH_IP=$(echo $LINE | cut -d ";" -f 2)
echo "$PUBLISH_HOSTNAME - $PUBLISH_IP"
/usr/bin/avahi-publish -a -R $PUBLISH_HOSTNAME $PUBLISH_IP &
done < /opt/config/names.csv
tail -f /dev/null