summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-02-12 17:28:51 +0100
committerGitHub <noreply@github.com>2020-02-12 17:28:51 +0100
commit817736299e862a4e2cf3d4043787d3dcd9b0e4f5 (patch)
treec75eb83bd1a74591ec2df9e23ad8470ae9af4722
parent72a6129fa65fc03b83f159d88dd2a29acf815f33 (diff)
parent9cfd3ac1e5bcc99c94c48c180a76d679e6c4361d (diff)
Merge pull request #3625 from ldir-EDB0/master
luci-app-wol: use uci etherwake default interface
-rw-r--r--applications/luci-app-wol/htdocs/luci-static/resources/view/wol.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/applications/luci-app-wol/htdocs/luci-static/resources/view/wol.js b/applications/luci-app-wol/htdocs/luci-static/resources/view/wol.js
index aeecd54fc..cafed753c 100644
--- a/applications/luci-app-wol/htdocs/luci-static/resources/view/wol.js
+++ b/applications/luci-app-wol/htdocs/luci-static/resources/view/wol.js
@@ -1,4 +1,5 @@
'use strict';
+'require uci';
'require fs';
'require ui';
'require rpc';
@@ -18,7 +19,8 @@ return L.view.extend({
return Promise.all([
L.resolveDefault(fs.stat('/usr/bin/etherwake')),
L.resolveDefault(fs.stat('/usr/bin/wol')),
- this.callHostHints()
+ this.callHostHints(),
+ uci.load('etherwake')
]);
},
@@ -48,6 +50,7 @@ return L.view.extend({
o = s.option(widgets.DeviceSelect, 'iface', _('Network interface to use'),
_('Specifies the interface the WoL packet is sent on'));
+ o.default = uci.get('etherwake', 'setup', 'interface');
o.rmempty = false;
o.noaliases = true;
o.noinactive = true;