Use zenity for mesh identity reset
This commit is contained in:
parent
239614e8e8
commit
af9806f462
|
@ -33,13 +33,8 @@ export TEXTDOMAINDIR="/usr/share/locale"
|
||||||
|
|
||||||
MESH_INSTALL_COMPLETED=/root/.mesh_setup_completed
|
MESH_INSTALL_COMPLETED=/root/.mesh_setup_completed
|
||||||
|
|
||||||
dialog --title $"New Identity" \
|
if ! zenity --question --title='New Identity' --text="Do you want to reset your identity? This will reset ALL data for this peer, and you will not be able to recover it." --ok-label=No --cancel-label=Yes; then
|
||||||
--backtitle $"Freedombone Mesh" \
|
sudo batman stop
|
||||||
--defaultno \
|
|
||||||
--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 batman stop
|
|
||||||
sudo pkill qtox
|
sudo pkill qtox
|
||||||
sudo pkill firefox
|
sudo pkill firefox
|
||||||
sudo pkill iceweasel
|
sudo pkill iceweasel
|
||||||
|
@ -54,7 +49,6 @@ case $sel in
|
||||||
dialog --title $"New Identity" \
|
dialog --title $"New Identity" \
|
||||||
--msgbox $"You now have a new identity" 6 40
|
--msgbox $"You now have a new identity" 6 40
|
||||||
fi
|
fi
|
||||||
;;
|
fi
|
||||||
esac
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue