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:
@@ -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
|
||||
|
Reference in New Issue
Block a user