clean rc.local for xdf-12mhz, xdf-30mhz, and mhf
[debian6500.git] / master / opt / cluster / acq / etc / rc.local
CommitLineData
5316baff
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.
5316baff 11
2c2423eb
LM
12# distribute interrupt for eth0 on core 1-4
13core=(2 4 8 10)
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
5316baff 21l=0
2c2423eb
LM
22
23# fill screen of dummy lines to keep last messages in history
24for i in $(seq 1 25); do
25 echo TRC6500
5316baff
LM
26done
27
28exit 0