Bläddra i källkod

Reload sysctl

Bob Mottram 7 år sedan
förälder
incheckning
d0d46a8b76
1 ändrade filer med 2 tillägg och 0 borttagningar
  1. 2
    0
      src/freedombone-utils-i2p

+ 2
- 0
src/freedombone-utils-i2p Visa fil

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