From bdc1fb75b4cb7e776e2bdbcaa0f92e8bb9a35955 Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 20 Nov 2022 12:06:51 +0800 Subject: [PATCH] Update common.py --- class/core/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/class/core/common.py b/class/core/common.py index 3d2b94a27..369955e7a 100755 --- a/class/core/common.py +++ b/class/core/common.py @@ -110,7 +110,7 @@ def initInitD(): import shutil shutil.copyfile(script_bin, initd_bin) mw.execShell('chmod +x ' + initd_bin) - + # 加入自启动 mw.execShell('which chkconfig && chkconfig --add mw') if os.path.exists('/etc/init.d'): @@ -119,7 +119,7 @@ def initInitD(): import shutil shutil.copyfile(script_bin, initd_bin) mw.execShell('chmod +x ' + initd_bin) - # 加入自启动 + mw.execShell('which update-rc.d && update-rc.d -f mw defaults') # 获取系统IPV4