This website requires JavaScript.
Explore
Help
Sign In
Drive
/
drive-ops
Watch
7
Star
0
Fork
You've already forked drive-ops
0
Code
Issues
Pull requests
Actions
Packages
Projects
Releases
Wiki
Activity
4567098da8
drive-ops
/
global
/
post-tasks.d
/
999reboot
6 lines
99 B
Plaintext
Raw
Normal View
History
Unescape
Escape
import
2013-09-02 14:01:50 +00:00
#!/bin/sh
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 08:55:34 +00:00
if [ -f /var/run/reboot-required -a -f /etc/cosmos-automatic-reboot ]; then
reboot
fi
Reference in a new issue
Copy permalink