View Single Post
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#16
Thanks for taking the time to do this.

I have a couple of minor points for future releases (tested on Diablo only):

these settings in cpufreq_tweak.sh:
Code:
echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo 400000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo 165000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
and these in sysctl.conf:
Code:
net.ipv4.tcp_sack=1
net.ipv4.tcp_dsack=1
net.ipv4.tcp_fack = 1
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.icmp_ignore_bogus_error_responses = 1
were already the defaults.

Also, the hosts.sh pipeline (nice use of xargs btw) can be shortened by a few commands:

Code:
wget -q -O - http://www.mvps.org/winhelp2002/hosts.txt | awk '/^127\.0\.0\.1.*\./ { print $2 }' | sort -u | xargs -n 100 echo 127.0.0.1  > /etc/banner_ad_hosts
The above also avoids processing commented-out lines (which added an extra "127.0.0.1" hostname), and doesn't remove hostnames starting with "localhost" (eg localhosts.3322.org).
 

The Following 2 Users Say Thank You to lma For This Useful Post: