diff options
author | Jo-Philipp Wich <jo@mein.io> | 2021-06-01 15:31:44 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2021-06-01 15:34:11 +0200 |
commit | 96ee6dc8d6c9796ab67de6f313a068a4bd3bb20f (patch) | |
tree | b767aa26b7281bac05d6772d6ab6f483d4251289 /protocols/luci-proto-3g/htdocs/luci-static/resources/protocol | |
parent | 10f02472c5fdab72615a7d3695e8f354811cd661 (diff) |
protocols: rename "device" option to "_modem_device"
This is required to resolve clashes with the generic "option device"
referring to netdev names in current netifd versions.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'protocols/luci-proto-3g/htdocs/luci-static/resources/protocol')
-rw-r--r-- | protocols/luci-proto-3g/htdocs/luci-static/resources/protocol/3g.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/luci-proto-3g/htdocs/luci-static/resources/protocol/3g.js b/protocols/luci-proto-3g/htdocs/luci-static/resources/protocol/3g.js index 7dab110207..620b4032df 100644 --- a/protocols/luci-proto-3g/htdocs/luci-static/resources/protocol/3g.js +++ b/protocols/luci-proto-3g/htdocs/luci-static/resources/protocol/3g.js @@ -70,7 +70,8 @@ return network.registerProtocol('3g', { renderFormOptions: function(s) { var o; - o = s.taboption('general', form.Value, 'device', _('Modem device')); + o = s.taboption('general', form.Value, '_modem_device', _('Modem device')); + o.ucioption = 'device'; o.rmempty = false; o.load = function(section_id) { return callFileList('/dev/').then(L.bind(function(devices) { |