Skip to content

Commit b6b1004

Browse files
committed
luci-mod-network: add parameter export for fingerprint call
In order to export the ieee-oui.txt only if export is set to true. This way it is configurable to export the data or not. Signed-off-by: Christian Korber <ckorber@tdt.de>
1 parent 980a064 commit b6b1004

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • modules/luci-mod-network/htdocs/luci-static/resources/view/network

modules/luci-mod-network/htdocs/luci-static/resources/view/network/diagnostics.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
const callFingerprint = rpc.declare({
1111
object: 'fingerprint',
1212
method: 'fingerprint',
13+
params: [ 'export' ],
1314
expect: { '': {} }
1415
});
1516

@@ -74,7 +75,7 @@ return view.extend({
7475
network.getDevices(),
7576
fs.exec('service', [ 'ufp', 'status' ]).then((res) => {
7677
if (res.stdout.trim() == 'running')
77-
return callFingerprint();
78+
return callFingerprint(true);
7879
return null;
7980
}),
8081
uci.load('luci')

0 commit comments

Comments
 (0)