Force chmod +x init.d script

试图愚蠢且有效地永久避免自己的误操作(逃
This commit is contained in:
bc li 2018-03-20 07:02:58 +08:00
parent 2f30178911
commit 352dd0a182

View File

@ -323,7 +323,8 @@ e:value("game",translate("Game Mode"))
-- ---------------------------------------------------
local apply = luci.http.formvalue("cbi.apply")
if apply then
os.execute("chmod +x /etc/init.d/v2raypro &")
os.execute("/etc/init.d/v2raypro restart >/dev/null 2>&1 &")
end
return m
return m