Skip to content
Snippets Groups Projects
Commit bcf377b9 authored by Bob Mottram's avatar Bob Mottram
Browse files

Tidy avahi utils

parent 443d7a79
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,7 @@ function create_avahi_service {
}
function mesh_avahi {
# shellcheck disable=SC2154
chroot "$rootdir" apt-get -yq install avahi-utils avahi-dnsconfd
decarray=( 1 2 3 4 5 6 7 8 9 0 )
......@@ -126,13 +127,12 @@ function install_avahi {
return
fi
${PROJECT_NAME}-mesh-install -f avahi
if [ ! "$?" = "0" ]; then
if ! "${PROJECT_NAME}-mesh-install" -f avahi; then
echo $'Failed to install avahi'
exit 68442
fi
if [ $DEFAULT_DOMAIN_NAME ]; then
if [ "$DEFAULT_DOMAIN_NAME" ]; then
sed -i "s|#host-name=.*|host-name=$LOCAL_NAME|g" /etc/avahi/avahi-daemon.conf
sed -i "s|host-name=.*|host-name=$LOCAL_NAME|g" /etc/avahi/avahi-daemon.conf
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment