From 1a388d7d89aa3e2b3333b71829e02c68003c886b Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Tue, 28 Jul 2015 09:49:21 +0200 Subject: [PATCH] add tarball for xdf-30mhz-lite --- lite | 1 + .../opt/cluster/bin/create_slave_tarball.sh | 2 +- master/opt/cluster/lite/etc/rc.local | 37 +++++++++++++++++++ 3 files changed, 39 insertions(+), 1 deletion(-) create mode 120000 lite create mode 100755 master/opt/cluster/lite/etc/rc.local diff --git a/lite b/lite new file mode 120000 index 0000000..36f4478 --- /dev/null +++ b/lite @@ -0,0 +1 @@ +master/opt/cluster/lite \ No newline at end of file diff --git a/master/opt/cluster/bin/create_slave_tarball.sh b/master/opt/cluster/bin/create_slave_tarball.sh index 11ff8da..26f9146 100755 --- a/master/opt/cluster/bin/create_slave_tarball.sh +++ b/master/opt/cluster/bin/create_slave_tarball.sh @@ -11,7 +11,7 @@ # * PROGNAME=$(basename $0) -BLADES="acq slave rec" +BLADES="acq slave lite rec" CLUSTER=/opt/cluster EXCLUDE=/tmp/$PROGNAME-exclude-$$ TFTP=/opt/tftp diff --git a/master/opt/cluster/lite/etc/rc.local b/master/opt/cluster/lite/etc/rc.local new file mode 100755 index 0000000..234bce1 --- /dev/null +++ b/master/opt/cluster/lite/etc/rc.local @@ -0,0 +1,37 @@ +#!/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. + +# distribute interrupt for eth0 on core 0 +core=(800) +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 + +# distribute interrupt for eth1 on core 11 +core=(1) +eth=1 +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 + +# fill screen of dummy lines to keep last messages in history +for i in $(seq 1 25); do + echo TRC6500 +done + +exit 0 -- 2.30.2