X-Git-Url: https://secure.softndesign.org/git/?a=blobdiff_plain;f=master%2Fopt%2Fcluster%2Facq%2Fetc%2Frc.local;h=e7af68d7ce1ac215c59fa3ae774aa9c4e29b0fb6;hb=1dbbd72a91ee2bc717b449b82a4f36d954715a83;hp=5a9a5d94c6f4144ea29322f064b21a63def0e8e1;hpb=7be646c04fa4f7e295f9da45dfbe93da33650e6f;p=debian6500.git diff --git a/master/opt/cluster/acq/etc/rc.local b/master/opt/cluster/acq/etc/rc.local index 5a9a5d9..e7af68d 100755 --- a/master/opt/cluster/acq/etc/rc.local +++ b/master/opt/cluster/acq/etc/rc.local @@ -1,4 +1,4 @@ -#!/bin/bash -e +#!/bin/bash # # rc.local # @@ -9,20 +9,18 @@ # In order to enable or disable this script just change the execution # bits. -# distribute interrupt for eth0 on core 1-4 -core=(2 4 8 10) -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 +# check eth2-5 (issue with client blade) +ip addr | awk '/: / {sub(/:/, "", $2); eth=$2} /inet / {print eth, $2}' > /root/ip.addr +for i in $(seq 2 5); do + interface=eth$i + grep -q $interface /root/ip.addr || { ifdown $interface; ifup $interface; } done -l=0 -# fill screen of dummy lines to keep last messages in history +# remove acpi cpu frequence controler +modprobe -r acpi_cpufreq + for i in $(seq 1 25); do - echo TRC6500 + echo TRC6500 done exit 0