first commit
This commit is contained in:
15
data/mdns/build/entrypoint.sh
Normal file
15
data/mdns/build/entrypoint.sh
Normal 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
|
||||
Reference in New Issue
Block a user