mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +00:00
sync (#470)
This commit is contained in:
commit
f020546383
4 changed files with 17 additions and 5 deletions
|
@ -199,14 +199,15 @@ return view.extend({
|
|||
o.value('25');
|
||||
o.modalonly = true;
|
||||
|
||||
o = s.option(form.ListValue, "timeout", _("Ping timeout"));
|
||||
o = s.option(form.Value, "timeout", _("Ping timeout"));
|
||||
o.default = '4';
|
||||
o.value('1', _('%d second').format('1'));
|
||||
for (var i = 2; i <= 10; i++)
|
||||
o.value(String(i), _('%d seconds').format(i));
|
||||
o.rmempty = false;
|
||||
o.modalonly = true;
|
||||
|
||||
o = s.option(form.ListValue, 'interval', _('Ping interval'));
|
||||
o = s.option(form.Value, 'interval', _('Ping interval'));
|
||||
o.default = '10';
|
||||
o.value('1', _('%d second').format('1'));
|
||||
o.value('3', _('%d seconds').format('3'));
|
||||
|
@ -220,6 +221,8 @@ return view.extend({
|
|||
o.value('900', _('%d minutes').format('15'));
|
||||
o.value('1800', _('%d minutes').format('30'));
|
||||
o.value('3600', _('%d hour').format('1'));
|
||||
o.modalonly = true;
|
||||
o.rmempty = false;
|
||||
|
||||
o = s.option(form.Value, 'failure_interval', _('Failure interval'),
|
||||
_('Ping interval during failure detection'));
|
||||
|
|
|
@ -578,7 +578,7 @@ function wizard_add()
|
|||
-- ucic:set("sqm","omrvpn","enabled","0")
|
||||
--end
|
||||
|
||||
ucic:set("sqm","omrvpn","enabled","1")
|
||||
ucic:set("sqm","omrvpn","enabled","0")
|
||||
ucic:set("sqm","omrvpn","download","0")
|
||||
ucic:set("sqm","omrvpn","upload","0")
|
||||
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
uci get luci.themes.Design >/dev/null 2>&1 || \
|
||||
uci batch <<-EOF
|
||||
set luci.themes.Design=/luci-static/design
|
||||
commit luci
|
||||
EOF
|
||||
|
||||
exit 0
|
|
@ -93,10 +93,10 @@ if [ "$(uci -q get sqm.omrvpn)" = "" ] || [ -z "$(uci -q get sqm.omrvpn.delay_th
|
|||
set sqm.omrvpn.verbosity='5'
|
||||
set sqm.omrvpn.overhead='44'
|
||||
set sqm.omrvpn.iqdisc_opts='autorate-ingress'
|
||||
set sqm.omrvpn.delay_thr_ms='300'
|
||||
set sqm.omrvpn.delay_thr_ms='300.0'
|
||||
set sqm.omrvpn.reflector_ping_interval_s='0.5'
|
||||
set sqm.omrvpn.enable_sleep_function='0'
|
||||
set sqm.omrvpn.autorate='1'
|
||||
set sqm.omrvpn.autorate='0'
|
||||
commit sqm
|
||||
EOF
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue