mirror of
https://github.com/openwrt/luci.git
synced 2026-05-31 10:31:55 +08:00
luci-app-wol: correctness fixes
Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
@@ -38,7 +38,7 @@ const methods = {
|
|||||||
call: function(request) {
|
call: function(request) {
|
||||||
const result = {};
|
const result = {};
|
||||||
if (request.args.name == etherwake || request.args.name == wakeonlan) {
|
if (request.args.name == etherwake || request.args.name == wakeonlan) {
|
||||||
parts = map(request.args.args, shellquote);
|
let parts = map(request.args.args, shellquote);
|
||||||
const fd = popen(request.args.name + ' ' + join(' ', parts));
|
const fd = popen(request.args.name + ' ' + join(' ', parts));
|
||||||
|
|
||||||
result.stdout = fd.read('all');
|
result.stdout = fd.read('all');
|
||||||
|
|||||||
Reference in New Issue
Block a user