--yesno"\nPlease confirm that you wish to power off the system.\n\nWARNING: to power on again you will need to have physical access to the hardware." 10 60
sel=$?
case$selin
1)return;;
255)return;;
esac
shutdown now
}
function restart_system {
dialog --title"Restart the system"\
--backtitle"Freedombone Control Panel"\
--defaultno\
--yesno"\nPlease confirm that you wish to restart the system.\n\nWARNING: If you are using full disk encryption then you will need physical access to the hardware to type in the password" 10 60