Skip to content

Commit 967babc

Browse files
authored
Up to 1.0.6-20240330
Add interface selection option.
1 parent 7d8b292 commit 967babc

3 files changed

Lines changed: 13 additions & 5 deletions

File tree

luci-app-modemdefine/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2023 Rafał Wabik - IceG - From eko.one.pl forum
2+
# Copyright 2023-2024 Rafał Wabik - IceG - From eko.one.pl forum
33
#
44
# Licensed to the GNU General Public License v3.0.
55
#
@@ -12,7 +12,7 @@ LUCI_DESCRIPTION:=LuCI JS interface to define the available modems. The list of
1212
MAINTAINER:=Rafał Wabik <4Rafal@gmail.com>
1313
LUCI_DEPENDS:=
1414
LUCI_PKGARCH:=all
15-
PKG_VERSION:=1.0.5-20231008
15+
PKG_VERSION:=1.0.6-20240330
1616

1717
define Package/luci-app-modemdefine/conffiles
1818
/etc/config/modemdefine

luci-app-modemdefine/htdocs/luci-static/resources/view/modem/modemdefine.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
'require view';
55
'require uci';
66
'require ui';
7+
'require tools.widgets as widgets'
78

89
/*
9-
Copyright 2023 Rafał Wabik - IceG - From eko.one.pl forum
10+
Copyright 2023-2024 Rafał Wabik - IceG - From eko.one.pl forum
1011
1112
Licensed to the GNU General Public License v3.0.
1213
*/
@@ -24,7 +25,6 @@ function getport(section_id) {
2425
return E('span', '<code>' + (uci.get('modemdefine', section_id, 'comm_port') + '</code>' || '<code>' + '' + '</code>' ));
2526
}
2627

27-
2828
return view.extend({
2929

3030
load: function() {
@@ -160,6 +160,14 @@ return view.extend({
160160
o.placeholder = _('Please select a port');
161161
o.textvalue = getport.bind(o);
162162
o.rmempty = false;
163+
164+
o = s.taboption('general', widgets.NetworkSelect, 'network', _('Interface'),
165+
_('Network interface for Internet access.')
166+
);
167+
o.exclude = s.section;
168+
o.nocreate = true;
169+
o.rmempty = false;
170+
o.default = 'wan';
163171

164172
o = s.taboption('general', form.Value, 'user_desc', _('User description'));
165173
o.modalonly = true;

luci-app-modemdefine/htdocs/luci-static/resources/view/modem/modemfound.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
'require ui';
55

66
/*
7-
Copyright 2023 Rafał Wabik - IceG - From eko.one.pl forum
7+
Copyright 2023-2024 Rafał Wabik - IceG - From eko.one.pl forum
88
99
Licensed to the GNU General Public License v3.0.
1010
*/

0 commit comments

Comments
 (0)