Update index.py

pull/109/head
midoks 6 years ago
parent 4031f548b9
commit a638acaba0
  1. 4
      plugins/bbr/index.py

@ -72,7 +72,7 @@ def start():
cmd = 'echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf'
public.execShell(cmd)
public.execShell('sysctl -p')
return 'ok'
return '重启系统生效'
def stop():
@ -85,7 +85,7 @@ def stop():
cmd2 = "sed -i '/net\.ipv4\.tcp_congestion_control/d' /etc/sysctl.conf"
public.execShell(cmd2)
public.execShell("sysctl -p")
return 'ok'
return '重启系统生效'
def restart():

Loading…
Cancel
Save