geteduroam-ops/global/post-tasks.d/999reboot
Stefan Wold 0f44e1679c Opt-in for automatic reboot
Use of && is bad in this context since it will return 1 causing
cosmos to exit with status 1 if a reboot is not required.
2014-02-24 09:55:34 +01:00

6 lines
99 B
Bash
Executable file

#!/bin/sh
if [ -f /var/run/reboot-required -a -f /etc/cosmos-automatic-reboot ]; then
reboot
fi