Sfoglia il codice sorgente

Improve removal of i2p

Bob Mottram 7 anni fa
parent
commit
37ac4dd20e
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3
    3
      src/freedombone-utils-i2p

+ 3
- 3
src/freedombone-utils-i2p Vedi File

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
60
 
59
 
61
     apt-get update
60
     apt-get update
62
     apt-get -yq install i2p i2p-keyring
61
     apt-get -yq install i2p i2p-keyring
63
 }
62
 }
64
 
63
 
65
 function remove_i2p {
64
 function remove_i2p {
66
-    apt-get -yq remove i2p i2p-keyring --purge
65
+    apt-get -yq remove i2p-router --purge
66
+    apt-get -yq remove i2p --purge
67
+    apt-get -yq remove i2p-keyring --purge
67
     apt-get -yq autoremove
68
     apt-get -yq autoremove
68
 
69
 
69
     # It's assumed here that ipv6 is only needed for i2p
70
     # It's assumed here that ipv6 is only needed for i2p
70
     # This might not be true in future
71
     # This might not be true in future
71
     sed -i 's|net.ipv6.conf.all.disable_ipv6.*|net.ipv6.conf.all.disable_ipv6 = 1|g' /etc/sysctl.conf
72
     sed -i 's|net.ipv6.conf.all.disable_ipv6.*|net.ipv6.conf.all.disable_ipv6 = 1|g' /etc/sysctl.conf
72
     /sbin/sysctl -p -q
73
     /sbin/sysctl -p -q
73
-    sysctl --system
74
 
74
 
75
     if [ -d /var/lib/i2p ]; then
75
     if [ -d /var/lib/i2p ]; then
76
         rm -rf /var/lib/i2p
76
         rm -rf /var/lib/i2p