备注:请关注之前的两篇文章在做下面的工作
entry({"admin", "system", "heyg3"}, call("heyg3"), _("heyg3"), 5).dependent=false
同时在system.lua文件中添加函数:
--adde by heyg :call
function heyg3()
luci.http.prepare_content("text/plain")
luci.http.write("haha rebootin now...")
luci.sys.reboot()
end