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:
Stefan Wold 2014-02-24 09:55:34 +01:00
parent 31772848b3
commit 0f44e1679c

View file

@ -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