#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local

# Set the governors for the CPUs to "performance"
for CPU in `ls -d /sys/devices/system/cpu/cpu[0-9]*`; do
	echo "performance" > $CPU/cpufreq/scaling_governor
done

# increase the memory for RX buffers on all eth devices
for i in `ip link | grep eth[0-9] | awk '{print $2}' | sed -e s/://`; do
    ethtool -G $i rx 1020
done
