Reload sysctl

This commit is contained in:
Bob Mottram 2018-02-11 22:55:55 +00:00
parent 218875928e
commit d0d46a8b76
1 changed files with 2 additions and 0 deletions

View File

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