2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-09-05 09:48:31 +00:00

Fix reboot systemd-run

It would just schedule itself.
This commit is contained in:
Jarrod Johnson
2019-04-02 08:27:00 -04:00
parent c7b85eaea3
commit ac04f5addd

View File

@@ -4,7 +4,7 @@
# Lenovo(c) 2019
#
if grep NAME /etc/os-release | egrep '(SLE|SUSE)' > /dev/null && [ -x /usr/bin/systemd-run ]; then
systemd-run --on-active=90 --timer-property=AccuracySec=10s reboot
systemd-run --on-active=90 --timer-property=AccuracySec=10s /sbin/reboot
else
(sleep 75;/sbin/reboot) &
fi