For consistency use the name 'mesh'

This commit is contained in:
Bob Mottram 2015-07-25 13:37:04 +01:00
parent 5641cd3bc8
commit 2aa9c42ad5
1 changed files with 1 additions and 1 deletions

View File

@ -1652,7 +1652,7 @@ function configure_avahi {
else
decarray=( 1 2 3 4 5 6 7 8 9 0 )
PEER_ID=${decarray[$RANDOM%10]}${decarray[$RANDOM%10]}${decarray[$RANDOM%10]}${decarray[$RANDOM%10]}
sed -i "s|#host-name=.*|host-name=freedombone-$PEER_ID|g" /etc/avahi/avahi-daemon.conf
sed -i "s|#host-name=.*|host-name=mesh-$PEER_ID|g" /etc/avahi/avahi-daemon.conf
fi
systemctl restart avahi-daemon
echo 'configure_avahi' >> $COMPLETION_FILE