pull/221/head
midoks 3 years ago
parent ffb1eb34e0
commit 1c0a130b49
  1. 2
      class/core/common.py
  2. 2
      scripts/init.d/mw.tpl

@ -85,7 +85,7 @@ def initInitD():
mw.execShell('mkdir -p /etc/init.d') mw.execShell('mkdir -p /etc/init.d')
# initd # initd
if os.path.exists("/etc/init.d"): if os.path.exists('/etc/init.d'):
initd_bin = '/etc/init.d/mw' initd_bin = '/etc/init.d/mw'
if not os.path.exists(initd_bin): if not os.path.exists(initd_bin):
import shutil import shutil

@ -245,7 +245,7 @@ case "$1" in
elif [ "$v6" != "" ]; then elif [ "$v6" != "" ]; then
if [ ! -f $mw_path/data/ipv6.pl ];then if [ ! -f $mw_path/data/ipv6.pl ];then
# 需要重启,ipv4才能生效. # Need to restart ipv6 to take effect
mw_stop mw_stop
mw_start mw_start
echo 'True' > $mw_path/data/ipv6.pl echo 'True' > $mw_path/data/ipv6.pl

Loading…
Cancel
Save