Pārlūkot izejas kodu

Tidying new mesh identity creation

Bob Mottram 8 gadus atpakaļ
vecāks
revīzija
2d0a8c33bb
Revīzijas autora e-pasts nav piesaistīts nevienam kontam
2 mainītis faili ar 4 papildinājumiem un 3 dzēšanām
  1. 1
    1
      src/freedombone-image-mesh
  2. 3
    2
      src/freedombone-mesh-reset

+ 1
- 1
src/freedombone-image-mesh Parādīt failu

@@ -109,7 +109,7 @@ function change_avahi_name {
109 109
     systemctl restart avahi-daemon
110 110
 
111 111
     echo "New avahi name for this peer is P$PEER_ID"
112
-    toilet "mesh-$PEER_ID"
112
+    echo "mesh-$PEER_ID"
113 113
     echo $"avahi name changed to P${PEER_ID}.local" >> $INSTALL_LOG
114 114
 }
115 115
 

+ 3
- 2
src/freedombone-mesh-reset Parādīt failu

@@ -37,11 +37,12 @@ dialog --title $"New Identity" \
37 37
        --yesno $"\nDo you want to reset your identity? This will reset ALL data for this peer, and you will not be able to recover it." 8 60
38 38
 sel=$?
39 39
 case $sel in
40
-    0) sudo pkill qtox
40
+    0) sudo batman stop
41
+       sudo pkill qtox
41 42
        sudo pkill firefox
42 43
        sudo pkill iceweasel
43 44
        sudo ${PROJECT_NAME}-image-mesh $USER new
44
-       sudo batman restart
45
+       sudo batman start
45 46
        if [ -f $HOME/mesh-desktop.sh ]; then
46 47
            $HOME/mesh-desktop.sh
47 48
        else