From 1c0a130b497811b34d8ea023acd47342fd54cfaf Mon Sep 17 00:00:00 2001 From: midoks Date: Tue, 25 Oct 2022 01:43:29 +0800 Subject: [PATCH] up --- class/core/common.py | 2 +- scripts/init.d/mw.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/class/core/common.py b/class/core/common.py index 4d6492a12..1b8e275dd 100755 --- a/class/core/common.py +++ b/class/core/common.py @@ -85,7 +85,7 @@ def initInitD(): mw.execShell('mkdir -p /etc/init.d') # initd - if os.path.exists("/etc/init.d"): + if os.path.exists('/etc/init.d'): initd_bin = '/etc/init.d/mw' if not os.path.exists(initd_bin): import shutil diff --git a/scripts/init.d/mw.tpl b/scripts/init.d/mw.tpl index ea879884c..e766f876d 100755 --- a/scripts/init.d/mw.tpl +++ b/scripts/init.d/mw.tpl @@ -245,7 +245,7 @@ case "$1" in elif [ "$v6" != "" ]; then if [ ! -f $mw_path/data/ipv6.pl ];then - # 需要重启,ipv4才能生效. + # Need to restart ipv6 to take effect mw_stop mw_start echo 'True' > $mw_path/data/ipv6.pl