Imported Upstream version 2.6.3
This commit is contained in:
parent
45043b58d0
commit
fad6ced6f6
255 changed files with 11081 additions and 4629 deletions
|
|
@ -201,6 +201,11 @@ static int instcmd(const char *cmdname, const char *extra)
|
|||
return STAT_INSTCMD_HANDLED;
|
||||
}
|
||||
*/
|
||||
/* FIXME: the below is only valid if (mode == MODE_DUMMY)
|
||||
* if (mode == MODE_REPEATER) => forward
|
||||
* if (mode == MODE_META) => ?
|
||||
*/
|
||||
|
||||
upslogx(LOG_NOTICE, "instcmd: unknown command [%s]", cmdname);
|
||||
return STAT_INSTCMD_UNKNOWN;
|
||||
}
|
||||
|
|
@ -258,6 +263,10 @@ static int setvar(const char *varname, const char *val)
|
|||
|
||||
upsdebugx(2, "entering setvar(%s, %s)", varname, val);
|
||||
|
||||
/* FIXME: the below is only valid if (mode == MODE_DUMMY)
|
||||
* if (mode == MODE_REPEATER) => forward
|
||||
* if (mode == MODE_META) => ?
|
||||
*/
|
||||
if (!strncmp(varname, "ups.status", 10))
|
||||
{
|
||||
status_init();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue