Merge remote-tracking branch 'origin/dev_tr65_tpe_1060_swm_suppression'
[debian6500.git] / master / opt / cluster / slave / etc / rc.local
1 #!/bin/bash -e
2 #
3 # rc.local
4 #
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
7 # value on error.
8 #
9 # In order to enable or disable this script just change the execution
10 # bits.
11 #
12 # By default this script does nothing.
13
14 for i in $(seq 1 25); do
15 echo TRC6500
16 done
17
18 # distribute interrupt for eth0 on core 1-6
19 core=(2 4 8 10 20 40)
20 l=0
21 for i in $(awk '/eth0/ {sub(/:/, ""); print $1}' /proc/interrupts); do
22 echo ${core[$l]} > /proc/irq/$i/smp_affinity
23 let l++
24 [ $l -eq 6 ] && l=1
25 done
26
27 exit 0