瀏覽代碼

Reload sysctl

Bob Mottram 7 年之前
父節點
當前提交
d0d46a8b76
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      src/freedombone-utils-i2p

+ 2
- 0
src/freedombone-utils-i2p 查看文件

@@ -56,6 +56,7 @@ function install_i2p {
56 56
     # i2p needs ipv6 to be enabled
57 57
     sed -i 's|net.ipv6.conf.all.disable_ipv6.*|net.ipv6.conf.all.disable_ipv6 = 0|g' /etc/sysctl.conf
58 58
     /sbin/sysctl -p -q
59
+    sysctl --system
59 60
 
60 61
     apt-get update
61 62
     apt-get -yq install i2p i2p-keyring
@@ -68,6 +69,7 @@ function remove_i2p {
68 69
     # This might not be true in future
69 70
     sed -i 's|net.ipv6.conf.all.disable_ipv6.*|net.ipv6.conf.all.disable_ipv6 = 1|g' /etc/sysctl.conf
70 71
     /sbin/sysctl -p -q
72
+    sysctl --system
71 73
 
72 74
     if [ -d /var/lib/i2p ]; then
73 75
         rm -rf /var/lib/i2p