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.
This commit is contained in:
parent
31772848b3
commit
0f44e1679c
|
@ -1,3 +1,5 @@
|
||||||
#!/bin/sh
|
#!/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
|
||||||
|
|
Loading…
Reference in a new issue