From 96ee6dc8d6c9796ab67de6f313a068a4bd3bb20f Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 1 Jun 2021 15:31:44 +0200 Subject: 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 --- protocols/luci-proto-qmi/htdocs/luci-static/resources/protocol/qmi.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'protocols/luci-proto-qmi/htdocs/luci-static') diff --git a/protocols/luci-proto-qmi/htdocs/luci-static/resources/protocol/qmi.js b/protocols/luci-proto-qmi/htdocs/luci-static/resources/protocol/qmi.js index de5bf49351..7c9e72cb1a 100644 --- a/protocols/luci-proto-qmi/htdocs/luci-static/resources/protocol/qmi.js +++ b/protocols/luci-proto-qmi/htdocs/luci-static/resources/protocol/qmi.js @@ -54,7 +54,8 @@ return network.registerProtocol('qmi', { renderFormOptions: function(s) { var dev = this.getL3Device() || this.getDevice(), 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) { -- cgit v1.2.3