soios/os/layers/contestant/includes.chroot/usr/local/bin/reboot-interactive

13 lines
385 B
Bash
Executable File

#!/bin/bash
set -eu
# Set dark color scheme, as a way to mark machines which have not been rebooted
# yet. This should make it less likely to forget to reboot some machines.
runcontestant gsettings set org.gnome.desktop.interface color-scheme prefer-dark
if runcontestant zenity --question --title="Reboot?" --text="Press Enter after inserting the boot USB stick."
then
reboot
fi