vi /usr/lib/lua/luci/view/sysauth.htm
<!-- 登录前 一键网络唤醒按钮 -->
<%
-- 在这里执行唤醒命令
if luci.http.formvalue("wake") then
luci.sys.call("/usr/bin/etherwake -D -i 'br-lan' -b 'D8:5E:D3:6A:EA:5C' > /dev/null 2>&1")
end
%>
<div style="text-align:center; margin:20px auto; max-width:320px;">
<form method="post" style="margin:0;">
<button
type="submit"
name="wake"
value="wake"
style="
background:#007bff;
color:white;
border:none;
padding:12px 24px;
border-radius:6px;
font-size:16px;
cursor:pointer;
width:100%;
font-weight:bold;
">
🖥️ 一键开机(网络唤醒)
</button>
</form>
</div>
<br>