mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
sysutils/nut: add blazer_ser driver (#950)
This commit is contained in:
parent
1c76be9ced
commit
88fc90f4d4
4 changed files with 32 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
PLUGIN_NAME= nut
|
||||
PLUGIN_VERSION= 1.3
|
||||
PLUGIN_REVISION= 1
|
||||
PLUGIN_COMMENT= Network UPS Tools
|
||||
PLUGIN_DEPENDS= nut
|
||||
PLUGIN_MAINTAINER= m.muenz@gmail.com
|
||||
|
|
|
|||
|
|
@ -78,6 +78,20 @@
|
|||
<help>Set extra arguments for this UPS, e.g. "port=auto".</help>
|
||||
</field>
|
||||
</subtab>
|
||||
<subtab id="nut-ups-blazerser" description="BlazerSerial-Driver">
|
||||
<field>
|
||||
<id>nut.blazerser.enable</id>
|
||||
<label>Enable</label>
|
||||
<type>checkbox</type>
|
||||
<help>Enable the BlazerSerial driver.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>nut.blazerser.args</id>
|
||||
<label>Extra Arguments</label>
|
||||
<type>text</type>
|
||||
<help>Set extra arguments for this UPS, e.g. "port=auto".</help>
|
||||
</field>
|
||||
</subtab>
|
||||
<subtab id="nut-ups-netclient" description="Netclient">
|
||||
<field>
|
||||
<id>nut.netclient.enable</id>
|
||||
|
|
|
|||
|
|
@ -63,6 +63,16 @@
|
|||
<Required>N</Required>
|
||||
</args>
|
||||
</blazerusb>
|
||||
<blazerser>
|
||||
<enable type="BooleanField">
|
||||
<Required>Y</Required>
|
||||
<default>0</default>
|
||||
</enable>
|
||||
<args type="TextField">
|
||||
<default>port=auto</default>
|
||||
<Required>N</Required>
|
||||
</args>
|
||||
</blazerser>
|
||||
<netclient>
|
||||
<enable type="BooleanField">
|
||||
<Required>Y</Required>
|
||||
|
|
|
|||
|
|
@ -23,4 +23,11 @@ driver=blazer_usb
|
|||
{{ OPNsense.Nut.blazerusb.args }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if helpers.exists('OPNsense.Nut.blazerser.enable') and OPNsense.Nut.blazerser.enable == '1' %}
|
||||
[{{ OPNsense.Nut.general.name }}]
|
||||
driver=blazer_ser
|
||||
{% if helpers.exists('OPNsense.Nut.blazerser.args') and OPNsense.Nut.blazerser.args != '' %}
|
||||
{{ OPNsense.Nut.blazerser.args }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue