diff options
author | Leif Johansson <leifj@sunet.se> | 2014-02-26 00:06:59 +0100 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2014-02-26 00:06:59 +0100 |
commit | c53ebe1d41624f2ea876d193bbb3b89173838dc0 (patch) | |
tree | 112f5ace6ed87e8c110a9ad08a70facd5a7774eb /global | |
parent | 31772848b3dfcf53971ae1a98020e1ff8875aa90 (diff) | |
parent | 0f44e1679c66a0aa223c8ac1d3f3e88d9934cc84 (diff) |
Merge pull request #5 from Ratler/reboot
Opt-in for automatic reboot
Diffstat (limited to 'global')
-rwxr-xr-x | global/post-tasks.d/999reboot | 4 |
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 |