[Nut-upsdev] [Nut-upsuser] Plexus UPS 1000V - megatec_usb

Carlos Rodrigues carlos.efr at mail.telepac.pt
Fri Dec 28 20:14:43 UTC 2007


On Dec 28, 2007 7:07 PM, Jason Pearce <jason at pearce.org.uk> wrote:
>   patch -p0 < ../megatec-ignoreoff.diff
>  patching file drivers/megatec.c
>  Hunk #4 FAILED at 486.
>  Hunk #5 FAILED at 799.
>  2 out of 5 hunks FAILED -- saving rejects to file drivers/megatec.c.rej
>
>   more drivers/megatec.c.rej
>  ***************
>  *** 472,478 ****
>                          fatalx(EXIT_FAILURE, "Error in \"battvolts\"
> parameter.");
>                  }
>
>  -           upslogx(LOG_NOTICE, "Overriding battery voltage interval
> [%.1fV, %.1fV].", battvolt_empty, battvolt_full);
>          }
>
>          if (battvolt_empty < 0 || battvolt_full < 0) {
>  --- 486,492 ----
>                          fatalx(EXIT_FAILURE, "Error in \"battvolts\"
> parameter.");
>                  }
>
>  +               upslogx(LOG_NOTICE, "Overriding battery voltage interval
> [%.1fV, %.1fV].", battvolt_empty, battvolt_full);
>          }
>
>          if (battvolt_empty < 0 || battvolt_full < 0) {
>  ***************
>  *** 785,790 ****
>          addvar(VAR_VALUE, "ondelay", "Minimum delay before UPS startup
> (minutes)");
>          addvar(VAR_VALUE, "offdelay", "Delay before UPS shutdown
> (minutes)");
>          addvar(VAR_VALUE, "battvolts", "Battery voltages (empty:full)");
>
>          megatec_subdrv_makevartable();
>    }
>  --- 799,805 ----
>          addvar(VAR_VALUE, "ondelay", "Minimum delay before UPS startup
> (minutes)");
>          addvar(VAR_VALUE, "offdelay", "Delay before UPS shutdown
> (minutes)");
>          addvar(VAR_VALUE, "battvolts", "Battery voltages (empty:full)");
>  +       addvar(VAR_FLAG, "ignoreoff", "Ignore the OFF status reported by
> the UPS.");
>
>          megatec_subdrv_makevartable();
>    }
>

Hmm, my bad. Just add that second part manually, the first one is just
whitespace change and doesn't matter.

-- 
Carlos Rodrigues



More information about the Nut-upsdev mailing list