This commit is contained in:
Bob Mottram 2016-09-29 12:50:00 +01:00
parent 3f27c2a5ee
commit d924dff596
5 changed files with 5 additions and 5 deletions

View File

@ -181,7 +181,7 @@ function install_dlna_main {
if ! grep -q "max_user_watches" $COMPLETION_FILE; then
echo 'fs.inotify.max_user_watches=65536' >> /etc/sysctl.conf
fi
/sbin/sysctl -p
/sbin/sysctl -p -q
function_check configure_firewall_for_dlna
configure_firewall_for_dlna

View File

@ -80,7 +80,7 @@ function global_rate_limit {
fi
sudo cp ~/sysctl.conf $SYSCTL_FILE
sudo rm ~/sysctl.conf
sudo sysctl -p $SYSCTL_FILE
sudo sysctl -p -q $SYSCTL_FILE
}
function refresh_gpg_keys {

View File

@ -97,7 +97,7 @@ function global_rate_limit {
else
sed -i 's|net.ipv4.tcp_challenge_ack_limit.*|net.ipv4.tcp_challenge_ack_limit = 999999999|g' /etc/sysctl.conf
fi
sysctl -p
sysctl -p -q
}
function status {

View File

@ -43,7 +43,7 @@ function global_rate_limit {
else
sed -i 's|net.ipv4.tcp_challenge_ack_limit.*|net.ipv4.tcp_challenge_ack_limit = 999999999|g' /etc/sysctl.conf
fi
sysctl -p 2> /dev/null
sysctl -p -q
}
function enable_ipv6 {

View File

@ -309,7 +309,7 @@ function route_outgoing_traffic_through_tor {
if ! grep -q "fs.file-max" /etc/sysctl.conf; then
echo "fs.file-max=100000" >> /etc/sysctl.conf
/sbin/sysctl -p
/sbin/sysctl -p -q
fi
echo 'domain localdomain' > /etc/resolv.conf