luci-app-watchcat: add support for IP family selection
Signed-off-by: John Kohl <jtk.git@bostonpog.org>
This commit is contained in:
parent
34813ff2b6
commit
20fdd8dd9d
2 changed files with 33 additions and 24 deletions
|
@ -40,12 +40,21 @@ return view.extend({
|
||||||
1 hour would be: <b>1h</b></li><li>1 week would be: <b>7d</b></li><ul>"));
|
1 hour would be: <b>1h</b></li><li>1 week would be: <b>7d</b></li><ul>"));
|
||||||
o.default = '6h';
|
o.default = '6h';
|
||||||
|
|
||||||
o = s.taboption('general', form.Value, 'pinghosts', _('Host To Check'), _(`IPv4 address or hostname to ping.`));
|
o = s.taboption('general', form.Value, 'pinghosts', _('Host To Check'), _(`IP address or hostname to ping.`));
|
||||||
o.datatype = 'host(1)';
|
o.datatype = 'host';
|
||||||
o.default = '8.8.8.8';
|
o.default = '8.8.8.8';
|
||||||
o.depends({ mode: "ping_reboot" });
|
o.depends({ mode: "ping_reboot" });
|
||||||
o.depends({ mode: "restart_iface" });
|
o.depends({ mode: "restart_iface" });
|
||||||
|
|
||||||
|
o = s.taboption('general', form.ListValue, 'addressfamily',
|
||||||
|
_('Address family for pinging the host'));
|
||||||
|
o.default = 'any';
|
||||||
|
o.depends({ mode: 'ping_reboot' });
|
||||||
|
o.depends({ mode: 'restart_iface' });
|
||||||
|
o.value('any');
|
||||||
|
o.value('ipv4');
|
||||||
|
o.value('ipv6');
|
||||||
|
|
||||||
o = s.taboption('general', form.Value, 'pingperiod',
|
o = s.taboption('general', form.Value, 'pingperiod',
|
||||||
_('Check Interval'),
|
_('Check Interval'),
|
||||||
_("How often to ping the host specified above. \
|
_("How often to ping the host specified above. \
|
||||||
|
|
|
@ -1,13 +1,17 @@
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr "Content-Type: text/plain; charset=UTF-8"
|
msgstr "Content-Type: text/plain; charset=UTF-8"
|
||||||
|
|
||||||
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:82
|
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:91
|
||||||
msgid ""
|
msgid ""
|
||||||
"<i>Applies to Ping Reboot and Restart Interface modes</i> <br /> Specify the "
|
"<i>Applies to Ping Reboot and Restart Interface modes</i> <br /> Specify the "
|
||||||
"interface to monitor and restart if a ping over it fails."
|
"interface to monitor and restart if a ping over it fails."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:72
|
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:50
|
||||||
|
msgid "Address family for pinging the host"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:81
|
||||||
msgid ""
|
msgid ""
|
||||||
"Applies to Ping Reboot and Periodic Reboot modes</i> <br /> When rebooting "
|
"Applies to Ping Reboot and Periodic Reboot modes</i> <br /> When rebooting "
|
||||||
"the router, the service will trigger a soft reboot. Entering a non-zero "
|
"the router, the service will trigger a soft reboot. Entering a non-zero "
|
||||||
|
@ -16,22 +20,22 @@ msgid ""
|
||||||
"0 to disable the forced reboot delay."
|
"0 to disable the forced reboot delay."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:88
|
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:97
|
||||||
msgid ""
|
msgid ""
|
||||||
"Applies to Ping Reboot and Restart Interface modes</i> <br /> If using "
|
"Applies to Ping Reboot and Restart Interface modes</i> <br /> If using "
|
||||||
"ModemManager, you can have Watchcat restart your ModemManger interface by "
|
"ModemManager, you can have Watchcat restart your ModemManger interface by "
|
||||||
"specifying its name."
|
"specifying its name."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:63
|
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:72
|
||||||
msgid "Big: 248 bytes"
|
msgid "Big: 248 bytes"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:50
|
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:59
|
||||||
msgid "Check Interval"
|
msgid "Check Interval"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:71
|
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:80
|
||||||
msgid "Force Reboot Delay"
|
msgid "Force Reboot Delay"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -54,7 +58,7 @@ msgstr ""
|
||||||
msgid "Host To Check"
|
msgid "Host To Check"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:51
|
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:60
|
||||||
msgid ""
|
msgid ""
|
||||||
"How often to ping the host specified above. <br /><br />The default unit is "
|
"How often to ping the host specified above. <br /><br />The default unit is "
|
||||||
"seconds, without a suffix, but you can use the suffix <b>m</b> for minutes, "
|
"seconds, without a suffix, but you can use the suffix <b>m</b> for minutes, "
|
||||||
|
@ -64,15 +68,11 @@ msgid ""
|
||||||
"li><ul>"
|
"li><ul>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:64
|
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:73
|
||||||
msgid "Huge: 1492 bytes"
|
msgid "Huge: 1492 bytes"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:43
|
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:104
|
||||||
msgid "IPv4 address or hostname to ping."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:95
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"If using ModemManager, then before restarting the interface, set the modem "
|
"If using ModemManager, then before restarting the interface, set the modem "
|
||||||
"to be allowed to use any band."
|
"to be allowed to use any band."
|
||||||
|
@ -92,15 +92,15 @@ msgid ""
|
||||||
"li><ul>"
|
"li><ul>"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:80
|
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:89
|
||||||
msgid "Interface"
|
msgid "Interface"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:81
|
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:90
|
||||||
msgid "Interface to monitor and/or restart"
|
msgid "Interface to monitor and/or restart"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:65
|
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:74
|
||||||
msgid "Jumbo: 9000 bytes"
|
msgid "Jumbo: 9000 bytes"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -108,7 +108,7 @@ msgstr ""
|
||||||
msgid "Mode"
|
msgid "Mode"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:87
|
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:96
|
||||||
msgid "Name of ModemManager Interface"
|
msgid "Name of ModemManager Interface"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -120,7 +120,7 @@ msgstr ""
|
||||||
msgid "Periodic Reboot"
|
msgid "Periodic Reboot"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:59
|
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:68
|
||||||
msgid "Ping Packet Size"
|
msgid "Ping Packet Size"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -141,11 +141,11 @@ msgstr ""
|
||||||
msgid "Restart Interface"
|
msgid "Restart Interface"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:60
|
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:69
|
||||||
msgid "Small: 1 byte"
|
msgid "Small: 1 byte"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:62
|
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:71
|
||||||
msgid "Standard: 56 bytes"
|
msgid "Standard: 56 bytes"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -153,7 +153,7 @@ msgstr ""
|
||||||
msgid "These rules will govern how this device reacts to network events."
|
msgid "These rules will govern how this device reacts to network events."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:94
|
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:103
|
||||||
msgid "Unlock Modem Bands"
|
msgid "Unlock Modem Bands"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -163,6 +163,6 @@ msgstr ""
|
||||||
msgid "Watchcat"
|
msgid "Watchcat"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:61
|
#: applications/luci-app-watchcat/htdocs/luci-static/resources/view/watchcat.js:70
|
||||||
msgid "Windows: 32 bytes"
|
msgid "Windows: 32 bytes"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
Loading…
Reference in a new issue