mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-09 20:32:52 +02:00
confirm dialog
This commit is contained in:
@@ -42,6 +42,12 @@ sudo sed -i "s/^autoPilot=.*/autoPilot=${choice}/g" /mnt/hdd/raspiblitz.conf
|
|||||||
#if [ ${check} -eq 1 ]; then choice="on"; fi
|
#if [ ${check} -eq 1 ]; then choice="on"; fi
|
||||||
#sudo sed -i "s/^electrumServer=.*/electrumServer=${choice}/g" /mnt/hdd/raspiblitz.conf
|
#sudo sed -i "s/^electrumServer=.*/electrumServer=${choice}/g" /mnt/hdd/raspiblitz.conf
|
||||||
|
|
||||||
# show password info dialog
|
# confirm reboot to activate new settings with bootstrap.service
|
||||||
dialog --backtitle "Rebooting" --msgbox "To activate the settings a reboot is needed." 6 52
|
dialog --backtitle "Rebooting" --yesno "To activate the settings a reboot is needed." 6 52
|
||||||
sudo shutdown -r now
|
if [ $? -eq 0 ];then
|
||||||
|
echo "Starting Reboot .."
|
||||||
|
sudo shutdown -r now
|
||||||
|
else
|
||||||
|
echo "No Reboot - changes stored, but maybe not active."
|
||||||
|
sleep 3
|
||||||
|
fi
|
Reference in New Issue
Block a user