summaryrefslogtreecommitdiff
path: root/global
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2014-02-26 00:06:59 +0100
committerLeif Johansson <leifj@sunet.se>2014-02-26 00:06:59 +0100
commitc53ebe1d41624f2ea876d193bbb3b89173838dc0 (patch)
tree112f5ace6ed87e8c110a9ad08a70facd5a7774eb /global
parent31772848b3dfcf53971ae1a98020e1ff8875aa90 (diff)
parent0f44e1679c66a0aa223c8ac1d3f3e88d9934cc84 (diff)
Merge pull request #5 from Ratler/reboot
Opt-in for automatic reboot
Diffstat (limited to 'global')
-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