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