Tidying new mesh identity creation

This commit is contained in:
Bob Mottram 2016-08-23 13:24:23 +01:00
parent 12886533eb
commit 2d0a8c33bb
No known key found for this signature in database
GPG Key ID: 0452CC7CEA982E38
2 changed files with 4 additions and 3 deletions

View File

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

View File

@ -37,11 +37,12 @@ dialog --title $"New Identity" \
--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
sel=$?
case $sel in
0) sudo pkill qtox
0) sudo batman stop
sudo pkill qtox
sudo pkill firefox
sudo pkill iceweasel
sudo ${PROJECT_NAME}-image-mesh $USER new
sudo batman restart
sudo batman start
if [ -f $HOME/mesh-desktop.sh ]; then
$HOME/mesh-desktop.sh
else