Merge pull request #5 from Ratler/reboot

Opt-in for automatic reboot
This commit is contained in:
Leif Johansson 2014-02-26 00:06:59 +01:00
commit c53ebe1d41

View file

@ -1,3 +1,5 @@
#!/bin/sh
test -f /var/run/reboot-required -a ! -f /etc/cosmos-manual-reboot && reboot
if [ -f /var/run/reboot-required -a -f /etc/cosmos-automatic-reboot ]; then
reboot
fi