Commit graph

3 commits

Author SHA1 Message Date
Kevin Darbyshire-Bryant
9cfd3ac1e5 luci-app-wol: use uci etherwake default interface
Use uci config 'etherwake.setup.interface' to default WOL interface
selection.

On some devices the lan interface is not the first item in the drop down
interface selection list.  Configuring this parameter allows the user to
set a preferred interface to be used/selected.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
2020-02-12 16:11:06 +00:00
Jo-Philipp Wich
1b040984c2 luci-app-wol: cope with empty stdout
Fix a cosmetic issue when etherwake is sending to an invalid interface.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-01-26 22:51:22 +01:00
Jo-Philipp Wich
40ee3fa3ce luci-app-woll: convert to client side rendering
Also make the interface option mandatory

Fixes: #3557
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2020-01-26 22:48:20 +01:00