quiet
This commit is contained in:
parent
3f27c2a5ee
commit
d924dff596
|
@ -181,7 +181,7 @@ function install_dlna_main {
|
||||||
if ! grep -q "max_user_watches" $COMPLETION_FILE; then
|
if ! grep -q "max_user_watches" $COMPLETION_FILE; then
|
||||||
echo 'fs.inotify.max_user_watches=65536' >> /etc/sysctl.conf
|
echo 'fs.inotify.max_user_watches=65536' >> /etc/sysctl.conf
|
||||||
fi
|
fi
|
||||||
/sbin/sysctl -p
|
/sbin/sysctl -p -q
|
||||||
|
|
||||||
function_check configure_firewall_for_dlna
|
function_check configure_firewall_for_dlna
|
||||||
configure_firewall_for_dlna
|
configure_firewall_for_dlna
|
||||||
|
|
|
@ -80,7 +80,7 @@ function global_rate_limit {
|
||||||
fi
|
fi
|
||||||
sudo cp ~/sysctl.conf $SYSCTL_FILE
|
sudo cp ~/sysctl.conf $SYSCTL_FILE
|
||||||
sudo rm ~/sysctl.conf
|
sudo rm ~/sysctl.conf
|
||||||
sudo sysctl -p $SYSCTL_FILE
|
sudo sysctl -p -q $SYSCTL_FILE
|
||||||
}
|
}
|
||||||
|
|
||||||
function refresh_gpg_keys {
|
function refresh_gpg_keys {
|
||||||
|
|
|
@ -97,7 +97,7 @@ function global_rate_limit {
|
||||||
else
|
else
|
||||||
sed -i 's|net.ipv4.tcp_challenge_ack_limit.*|net.ipv4.tcp_challenge_ack_limit = 999999999|g' /etc/sysctl.conf
|
sed -i 's|net.ipv4.tcp_challenge_ack_limit.*|net.ipv4.tcp_challenge_ack_limit = 999999999|g' /etc/sysctl.conf
|
||||||
fi
|
fi
|
||||||
sysctl -p
|
sysctl -p -q
|
||||||
}
|
}
|
||||||
|
|
||||||
function status {
|
function status {
|
||||||
|
|
|
@ -43,7 +43,7 @@ function global_rate_limit {
|
||||||
else
|
else
|
||||||
sed -i 's|net.ipv4.tcp_challenge_ack_limit.*|net.ipv4.tcp_challenge_ack_limit = 999999999|g' /etc/sysctl.conf
|
sed -i 's|net.ipv4.tcp_challenge_ack_limit.*|net.ipv4.tcp_challenge_ack_limit = 999999999|g' /etc/sysctl.conf
|
||||||
fi
|
fi
|
||||||
sysctl -p 2> /dev/null
|
sysctl -p -q
|
||||||
}
|
}
|
||||||
|
|
||||||
function enable_ipv6 {
|
function enable_ipv6 {
|
||||||
|
|
|
@ -309,7 +309,7 @@ function route_outgoing_traffic_through_tor {
|
||||||
|
|
||||||
if ! grep -q "fs.file-max" /etc/sysctl.conf; then
|
if ! grep -q "fs.file-max" /etc/sysctl.conf; then
|
||||||
echo "fs.file-max=100000" >> /etc/sysctl.conf
|
echo "fs.file-max=100000" >> /etc/sysctl.conf
|
||||||
/sbin/sysctl -p
|
/sbin/sysctl -p -q
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo 'domain localdomain' > /etc/resolv.conf
|
echo 'domain localdomain' > /etc/resolv.conf
|
||||||
|
|
Loading…
Reference in New Issue