Browse Source

Merge branch 'stretch' of https://github.com/bashrc/freedombone

Bob Mottram 7 years ago
parent
commit
90cab772f3
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/freedombone-mesh-routing

+ 2
- 0
src/freedombone-mesh-routing View 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