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