This commit is contained in:
parent
ffb1eb34e0
commit
1c0a130b49
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue