> The patch in attachment allows upssched to put actual UPS name
Eeeer... the patch I missed to attach...
Gabor
--- upssched.c.orig 2010-06-07 15:03:50.552850006 +0200
+++ upssched.c 2010-06-07 15:07:19.376852765 +0200
@@ -792,15 +792,18 @@
}
if (!strcmp(cmd, "EXECUTE")) {
+ char buf[LARGEBUF];
+
if (ca1 == '\0') {
upslogx(LOG_ERR, "Empty EXECUTE command argument");
return;
}
+ snprintf(buf, sizeof(buf), ca1, upsname);
if (verbose)
- upslogx(LOG_INFO, "Executing command: %s", ca1);
+ upslogx(LOG_INFO, "Executing command: %s", buf);
- exec_cmd(ca1);
+ exec_cmd(buf);
return;
}
_______________________________________________
Nut-upsdev mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev