mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-09-06 10:18:20 +00:00
17 lines
424 B
Bash
Executable File
17 lines
424 B
Bash
Executable File
#!/bin/sh
|
|
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
|
|
#(C)IBM Corp
|
|
# Lenovo(c) 2019
|
|
#
|
|
|
|
#Note that in SuSE/SLE, this script only works as a postbootscript, not as a postscript
|
|
|
|
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 /sbin/reboot
|
|
else
|
|
(sleep 75;/sbin/reboot) &
|
|
fi
|
|
|
|
exit 0
|
|
|