2017-06-20 15:09:15 +02:00
|
|
|
|
2017-02-23 13:15:04 +01:00
|
|
|
#!/bin/sh
|
|
|
|
exec tail -n +3 $0
|
|
|
|
|
|
|
|
# This file is configured by the ansible configuration for yaVDR
|
|
|
|
|
|
|
|
{% 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
|