initial commit [141.14.140.180,mike]

This commit is contained in:
2026-08-10 16:12:09 +02:00
commit c534ea1c79
66 changed files with 9244 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
#!/usr/bin/perl
#################################################################################### telemetry setup (mwx'2020)
&setupcron();
####################################################################################################### SUPPORT
sub setupcron() {
open(CRON,"crontab -l |");
while(<CRON>) {
chomp();
push(@CRON,$_) if (!/\/db\/bin\/telemetry/);
}
push(@CRON,"*/5 * * * * /db/bin/telemetry > /dev/null 2>&1");
open(OUT,"> /tmp/cron.$$");
for (@CRON) {
print OUT "$_\n";
}
close(OUT);
system("/usr/bin/crontab /tmp/cron.$$");
system("rm -f /tmp/cron.$$");
}
########################################################################################################### END