#
# In order to enable or disable this script just change the execution
# bits.
-#
-# By default this script does nothing.
-# distribute interrupt for eth0 on core 1-5
-core=(2 4 8 16 32)
+# distribute interrupt for eth0 on core 1-4
+core=(2 4 8 10)
+eth=0
+l=0
+for i in $(awk '/eth'$eth'/ {sub(/:/, ""); print $1}' /proc/interrupts); do
+ echo "echo ${core[$l]} > /proc/irq/$i/smp_affinity"
+ l=$(expr $l + 1)
+ [ $l -eq ${#core[*]} ] && l=1
+done
l=0
-for i in $(awk '/eth0/ {sub(/:/, ""); print $1}' /proc/interrupts); do
- echo ${core[$l]} > /proc/irq/$i/smp_affinity
- let l++
- [ $l -eq 5 ] && l=0
+
+# fill screen of dummy lines to keep last messages in history
+for i in $(seq 1 25); do
+ echo TRC6500
done
exit 0