From 352dd0a182e6d7d2ba33c3a58a15a90bd6fb80ca Mon Sep 17 00:00:00 2001 From: bc li Date: Tue, 20 Mar 2018 07:02:58 +0800 Subject: [PATCH] =?UTF-8?q?Force=20chmod=20+x=20init.d=20script=20?= =?UTF-8?q?=E8=AF=95=E5=9B=BE=E6=84=9A=E8=A0=A2=E4=B8=94=E6=9C=89=E6=95=88?= =?UTF-8?q?=E5=9C=B0=E6=B0=B8=E4=B9=85=E9=81=BF=E5=85=8D=E8=87=AA=E5=B7=B1?= =?UTF-8?q?=E7=9A=84=E8=AF=AF=E6=93=8D=E4=BD=9C=EF=BC=88=E9=80=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package/lean/luci-app-v2ray/luasrc/model/cbi/v2ray.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/lean/luci-app-v2ray/luasrc/model/cbi/v2ray.lua b/package/lean/luci-app-v2ray/luasrc/model/cbi/v2ray.lua index f5149e296..4471d3115 100644 --- a/package/lean/luci-app-v2ray/luasrc/model/cbi/v2ray.lua +++ b/package/lean/luci-app-v2ray/luasrc/model/cbi/v2ray.lua @@ -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 \ No newline at end of file +return m