2023-07-12 09:55:23 +02:00
|
|
|
#!/usr/bin/perl -w
|
|
|
|
|
|
|
|
use esmith::Build::CreateLinks qw(:all);
|
|
|
|
|
|
|
|
|
|
|
|
# templates to expand
|
|
|
|
for my $event (qw(
|
|
|
|
local
|
|
|
|
post-install
|
|
|
|
post-upgrade
|
2024-04-04 16:12:06 +02:00
|
|
|
smeserver-grub-update
|
2023-07-12 09:55:23 +02:00
|
|
|
))
|
|
|
|
{
|
|
|
|
event_templates ($event , "/etc/sysconfig/kernel");
|
|
|
|
event_templates ($event , "/etc/default/grub");
|
|
|
|
}
|
|
|
|
|
|
|
|
# actions to perform
|
|
|
|
for my $event (qw(
|
|
|
|
local
|
|
|
|
post-install
|
|
|
|
post-upgrade
|
2024-04-04 16:12:06 +02:00
|
|
|
smeserver-grub-update
|
2023-07-12 09:55:23 +02:00
|
|
|
))
|
|
|
|
{
|
|
|
|
event_actions ( $event , 'update-grub'=>'10');
|
|
|
|
}
|