sudo timedForcedShutdown.sh <mountPoint> <computerName> <currentUsername> <minutesN>
<shutdownAction> <notificationMessage> <shutdownPhrase> <postponeAlert>
This script will help to enforce a mandatory reboot or shut down. If no console user is logged in, the script will execute the command stored in the $shutdownAction variable. If a console user is logged in, a dialog is displayed informing the user of the number of minutes until shutdown followed by a configurable message stored in $notificationMessage. The dialog contains two buttons. Clicking the "Postpone" button will cancel shutdown/reboot. Clicking the "Shut Down" button will execute the command stored in the $shutdownAction variable.