Use zenity for mesh identity reset
This commit is contained in:
parent
239614e8e8
commit
af9806f462
|
@ -33,28 +33,22 @@ 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 \
|
sudo pkill qtox
|
||||||
--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
|
sudo pkill firefox
|
||||||
sel=$?
|
sudo pkill iceweasel
|
||||||
case $sel in
|
sudo pkill midori
|
||||||
0) sudo batman stop
|
sudo pkill patchwork
|
||||||
sudo pkill qtox
|
sudo rm -f $MESH_INSTALL_COMPLETED
|
||||||
sudo pkill firefox
|
sudo ${PROJECT_NAME}-image-mesh $USER new
|
||||||
sudo pkill iceweasel
|
sudo batman start
|
||||||
sudo pkill midori
|
if [ -f $HOME/mesh-desktop.sh ]; then
|
||||||
sudo pkill patchwork
|
$HOME/mesh-desktop.sh
|
||||||
sudo rm -f $MESH_INSTALL_COMPLETED
|
else
|
||||||
sudo ${PROJECT_NAME}-image-mesh $USER new
|
dialog --title $"New Identity" \
|
||||||
sudo batman start
|
--msgbox $"You now have a new identity" 6 40
|
||||||
if [ -f $HOME/mesh-desktop.sh ]; then
|
fi
|
||||||
$HOME/mesh-desktop.sh
|
fi
|
||||||
else
|
|
||||||
dialog --title $"New Identity" \
|
|
||||||
--msgbox $"You now have a new identity" 6 40
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue