Update init_cmd.py

This commit is contained in:
Mr Chen
2024-12-01 01:14:12 +08:00
parent 7352f30d91
commit eafaf13a3d
+2
View File
@@ -44,6 +44,8 @@ def init_cmd():
if os.path.exists('/etc/init.d'):
initd_bin = '/etc/init.d/mw'
if not os.access(initd_bin, os.W_OK):
return False
shutil.copyfile(script_bin, initd_bin)
mw.execShell('chmod +x ' + initd_bin)
# 加入自启动