#!/bin/bash -e # # rc.local # # This script is executed at the end of each multiuser runlevel. # Make sure that the script will "exit 0" on success or any other # value on error. # # In order to enable or disable this script just change the execution # bits. # # By default this script does nothing. for i in $(seq 1 25); do echo TRC6500 done # distribute interrupt for eth0 on core 1-6 core=(2 4 8 10 20 40) 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 6 ] && l=1 done exit 0