5 # This script is executed at the end of each multiuser runlevel.
6 # Make sure that the script will "exit 0" on success or any other
9 # In order to enable or disable this script just change the execution
12 # set eth interrupts on core 0-4
14 for j
in $
(seq 0 5); do
15 for i
in $
(cat /proc
/interrupts |
awk '/eth'$j'/ {sub(/:/, "");; print $1}'); do
16 echo ${core[$l]} > /proc
/irq
/$i/smp_affinity
18 [ $l -eq ${#core[*]} ] && l
=0
22 # check eth2-5 (issue with client blade)
23 ip addr |
awk '/: / {sub(/:/, "", $2); eth=$2} /inet / {print eth, $2}' > /root
/ip.addr
24 for i
in $
(seq 2 5); do
26 grep -q $interface /root
/ip.addr ||
{ ifdown
$interface; ifup
$interface; }
29 # remove acpi cpu frequence controler
30 modprobe
-r acpi_cpufreq
32 for i
in $
(seq 1 25); do