2017-02-23 13:15:04 +01:00
|
|
|
#!/bin/sh
|
2019-01-07 09:25:08 +01:00
|
|
|
{{ ansible_managed | comment }}
|
2017-02-23 13:15:04 +01:00
|
|
|
|
2019-01-07 09:25:08 +01:00
|
|
|
exec tail -n +3 $0
|
2017-02-23 13:15:04 +01:00
|
|
|
|
|
|
|
{% if system.shutdown is defined and system.shutdown == 'reboot' %}
|
|
|
|
menuentry "PowerOff" {
|
|
|
|
halt
|
|
|
|
}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
if [ "${recordfail}" = 1 ]; then
|
2017-03-13 10:40:35 +01:00
|
|
|
set timeout={{ 3 if grub.timeout < 3 else grub.timeout }}
|
2017-02-23 13:15:04 +01:00
|
|
|
else
|
2017-03-13 10:40:35 +01:00
|
|
|
set timeout={{ grub.timeout if grub.timeout is defined else 0 }}
|
2017-02-23 13:15:04 +01:00
|
|
|
fi
|