summaryrefslogtreecommitdiff
path: root/global/post-tasks.d/999reboot
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2014-03-03 10:32:45 +0100
committerLeif Johansson <leifj@sunet.se>2014-03-03 10:32:45 +0100
commit60e026c0b1b2e1440e0721e634cf7c803b8e5907 (patch)
treedc441df2449b254c0260e24155e1c0e9c68747c8 /global/post-tasks.d/999reboot
parent45e2a1c1defacb2034c877b71fcf50e961214e72 (diff)
parent2369e391d7418fdb8a402d403caf33608c86c70a (diff)
Merge branch 'master' of git://github.com/leifj/multiverse into multiverse
Diffstat (limited to 'global/post-tasks.d/999reboot')
-rwxr-xr-xglobal/post-tasks.d/999reboot4
1 files changed, 3 insertions, 1 deletions
diff --git a/global/post-tasks.d/999reboot b/global/post-tasks.d/999reboot
index 5331446..2ed9fa7 100755
--- a/global/post-tasks.d/999reboot
+++ b/global/post-tasks.d/999reboot
@@ -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