Sfoglia il codice sorgente

Change mesh protocol within avahi service

Bob Mottram 7 anni fa
parent
commit
e60eb5cbd0
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2
    0
      src/freedombone-mesh-routing

+ 2
- 0
src/freedombone-mesh-routing Vedi File

48
 echo '#!/bin/bash' > /tmp/change_routing
48
 echo '#!/bin/bash' > /tmp/change_routing
49
 echo "echo '$1' > $MESH_DEFAULT_PROTOCOL" >> /tmp/change_routing
49
 echo "echo '$1' > $MESH_DEFAULT_PROTOCOL" >> /tmp/change_routing
50
 echo "echo '$1' > $MESH_CURRENT_PROTOCOL" >> /tmp/change_routing
50
 echo "echo '$1' > $MESH_CURRENT_PROTOCOL" >> /tmp/change_routing
51
+echo "sed -i 's|<type>.*|<type>_${1}._tcp</type>|g' /etc/avahi/services/routing.service"  >> /tmp/change_routing
52
+echo 'systemctl restart avahi-daemon'  >> /tmp/change_routing
51
 chmod +x /tmp/change_routing
53
 chmod +x /tmp/change_routing
52
 
54
 
53
 clear
55
 clear