clean rc.local for xdf-12mhz, xdf-30mhz, and mhf
authorLaurent Mazet <laurent.mazet@thalesgroup.com>
Tue, 28 Jul 2015 07:47:30 +0000 (09:47 +0200)
committerLaurent Mazet <laurent.mazet@thalesgroup.com>
Tue, 28 Jul 2015 07:47:30 +0000 (09:47 +0200)
master/opt/cluster/acq/etc/rc.local
master/opt/cluster/rec/etc/rc.local
master/opt/cluster/slave/etc/rc.local

index 72417e6ae61e805fcc9d5c005f4d61b180b8f172..5a9a5d94c6f4144ea29322f064b21a63def0e8e1 100755 (executable)
@@ -8,16 +8,21 @@
 #
 # In order to enable or disable this script just change the execution
 # bits.
-#
-# By default this script does nothing.
 
-# distribute interrupt for eth0 on core 1-5
-core=(2 4 8 10 20)
+# 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
+done
 l=0
-for i in $(awk '/eth0/ {sub(/:/, ""); print $1}' /proc/interrupts); do
-  echo ${core[$l]} > /proc/irq/$i/smp_affinity
-  let l++
-  [ $l -eq 6 ] && l=1
+
+# fill screen of dummy lines to keep last messages in history
+for i in $(seq 1 25); do
+  echo TRC6500
 done
 
 exit 0
index 03c36a059bb41b68295bebdb391eba65b95baef5..93e8b66c219584bfac10f1d8aeda349b57d98eb1 100755 (executable)
@@ -8,10 +8,13 @@
 #
 # In order to enable or disable this script just change the execution
 # bits.
-#
-# By default this script does nothing.
 
 # fix f*0^$#g local mount
 mount -a
 
+# fill screen of dummy lines to keep last messages in history
+for i in $(seq 1 25); do
+  echo TRC6500
+done
+
 exit 0
index 563698d0bf4d39777571457c9781530eac98af42..9268f57b2dcdcffa0b87dce04dd817a6acfa8f08 100755 (executable)
@@ -8,20 +8,10 @@
 #
 # In order to enable or disable this script just change the execution
 # bits.
-#
-# By default this script does nothing.
 
+# fill screen of dummy lines to keep last messages in history
 for i in $(seq 1 25); do
   echo TRC6500
 done
 
-# distribute interrupt for eth0 on core 1-6
-core=(2 4 8 10 20 40)
-l=0
-for i in $(awk '/eth0/ {sub(/:/, ""); print $1}' /proc/interrupts); do
-  echo ${core[$l]} > /proc/irq/$i/smp_affinity
-  let l++
-  [ $l -eq 6 ] && l=1
-done
-
 exit 0