This website requires JavaScript.
Explore
Help
Sign In
matrix
/
matrix-ops
Watch
3
Star
0
Fork
You've already forked matrix-ops
0
Code
Issues
Pull requests
Packages
Projects
Releases
Wiki
Activity
29bf83125a
matrix-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