浏览代码

Tidying new mesh identity creation

Bob Mottram 8 年前
父节点
当前提交
2d0a8c33bb
没有帐户链接到提交者的电子邮件
共有 2 个文件被更改,包括 4 次插入3 次删除
  1. 1
    1
      src/freedombone-image-mesh
  2. 3
    2
      src/freedombone-mesh-reset

+ 1
- 1
src/freedombone-image-mesh 查看文件

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

+ 3
- 2
src/freedombone-mesh-reset 查看文件

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
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
 sel=$?
38
 sel=$?
39
 case $sel in
39
 case $sel in
40
-    0) sudo pkill qtox
40
+    0) sudo batman stop
41
+       sudo pkill qtox
41
        sudo pkill firefox
42
        sudo pkill firefox
42
        sudo pkill iceweasel
43
        sudo pkill iceweasel
43
        sudo ${PROJECT_NAME}-image-mesh $USER new
44
        sudo ${PROJECT_NAME}-image-mesh $USER new
44
-       sudo batman restart
45
+       sudo batman start
45
        if [ -f $HOME/mesh-desktop.sh ]; then
46
        if [ -f $HOME/mesh-desktop.sh ]; then
46
            $HOME/mesh-desktop.sh
47
            $HOME/mesh-desktop.sh
47
        else
48
        else