mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-16 02:25:29 +08:00
Force chmod +x init.d script
试图愚蠢且有效地永久避免自己的误操作(逃
This commit is contained in:
parent
2f30178911
commit
352dd0a182
@ -323,6 +323,7 @@ e:value("game",translate("Game Mode"))
|
|||||||
-- ---------------------------------------------------
|
-- ---------------------------------------------------
|
||||||
local apply = luci.http.formvalue("cbi.apply")
|
local apply = luci.http.formvalue("cbi.apply")
|
||||||
if apply then
|
if apply then
|
||||||
|
os.execute("chmod +x /etc/init.d/v2raypro &")
|
||||||
os.execute("/etc/init.d/v2raypro restart >/dev/null 2>&1 &")
|
os.execute("/etc/init.d/v2raypro restart >/dev/null 2>&1 &")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user