initial commit of file from CVS for e-smith-nutUPS on Wed 12 Jul 09:01:20 BST 2023

This commit is contained in:
Brian Read
2023-07-12 09:01:20 +01:00
parent d9332aba34
commit 667523a800
63 changed files with 1241 additions and 2 deletions

24
createlinks Normal file
View File

@@ -0,0 +1,24 @@
#!/usr/bin/perl -w
use esmith::Build::CreateLinks qw(:all);
my @events = qw(bootstrap-console-save console-save post-install post-upgrade e-smith-nutUPS-update);
templates2events("/etc/sysconfig/ups", @events);
templates2events("/usr/lib/systemd/system/nut-server.service.d/50koozali.conf", @events);
templates2events("/usr/lib/systemd/system/nut-monitor.service.d/50koozali.conf", @events);
foreach (qw(ups.conf upsd.users upsmon.conf upssched.conf))
{
templates2events("/etc/ups/$_", @events);
}
foreach (qw(bootstrap-console-save console-save e-smith-nutUPS-update))
{
templates2events("/etc/ups/upsd.conf", $_);
}
my $event="e-smith-nutUPS-update";
safe_symlink("try-restart", "root/etc/e-smith/events/$event/services2adjust/nut");
templates2events("/etc/systemd/system-preset/49-koozali.preset", $event);
event_link("systemd-default", $event, "06");