|
@@ -64,6 +64,7 @@ function install_i2p {
|
64
|
64
|
|
65
|
65
|
function remove_i2p {
|
66
|
66
|
apt-get -yq remove i2p i2p-keyring --purge
|
|
67
|
+ apt-get -yq autoremove
|
67
|
68
|
|
68
|
69
|
# It's assumed here that ipv6 is only needed for i2p
|
69
|
70
|
# This might not be true in future
|
|
@@ -83,6 +84,10 @@ function remove_i2p {
|
83
|
84
|
}
|
84
|
85
|
|
85
|
86
|
function i2p_enable_sam {
|
|
87
|
+ if [ ! -f /var/lib/i2p/i2p-config/clients.config ]; then
|
|
88
|
+ echo $'File not found /var/lib/i2p/i2p-config/clients.config'
|
|
89
|
+ exit 483648364834
|
|
90
|
+ fi
|
86
|
91
|
sed -i 's|clientApp.1.startOnLoad=.*|clientApp.1.startOnLoad=true|g' /var/lib/i2p/i2p-config/clients.config
|
87
|
92
|
systemctl restart i2p
|
88
|
93
|
}
|