remove static trc6500 os version
[debian6500.git] / master / opt / cluster / lite / etc / rc.local
CommitLineData
1a388d7d
LM
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# distribute interrupt for eth0 on core 0
13core=(800)
14eth=0
15l=0
16for i in $(awk '/eth'$eth'/ {sub(/:/, ""); print $1}' /proc/interrupts); do
17 echo "echo ${core[$l]} > /proc/irq/$i/smp_affinity"
18 l=$(expr $l + 1)
19 [ $l -eq ${#core[*]} ] && l=1
20done
21
22# distribute interrupt for eth1 on core 11
23core=(1)
24eth=1
25l=0
26for i in $(awk '/eth'$eth'/ {sub(/:/, ""); print $1}' /proc/interrupts); do
27 echo "echo ${core[$l]} > /proc/irq/$i/smp_affinity"
28 l=$(expr $l + 1)
29 [ $l -eq ${#core[*]} ] && l=1
30done
31
32# fill screen of dummy lines to keep last messages in history
33for i in $(seq 1 25); do
34 echo TRC6500
35done
36
37exit 0