Change mesh protocol within avahi service
This commit is contained in:
parent
699c2dca51
commit
e60eb5cbd0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue