Change mesh protocol within avahi service

This commit is contained in:
Bob Mottram 2018-01-17 08:58:23 +00:00
parent 699c2dca51
commit e60eb5cbd0
1 changed files with 2 additions and 0 deletions

View File

@ -48,6 +48,8 @@ esac
echo '#!/bin/bash' > /tmp/change_routing
echo "echo '$1' > $MESH_DEFAULT_PROTOCOL" >> /tmp/change_routing
echo "echo '$1' > $MESH_CURRENT_PROTOCOL" >> /tmp/change_routing
echo "sed -i 's|<type>.*|<type>_${1}._tcp</type>|g' /etc/avahi/services/routing.service" >> /tmp/change_routing
echo 'systemctl restart avahi-daemon' >> /tmp/change_routing
chmod +x /tmp/change_routing
clear