Soft'N'Design Software
/
projects
/
debian6500.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
004ca31
)
clean rc.local for xdf-12mhz, xdf-30mhz, and mhf
author
Laurent Mazet
<laurent.mazet@thalesgroup.com>
Tue, 28 Jul 2015 07:47:30 +0000
(09:47 +0200)
committer
Laurent Mazet
<laurent.mazet@thalesgroup.com>
Tue, 28 Jul 2015 07:47:30 +0000
(09:47 +0200)
master/opt/cluster/acq/etc/rc.local
patch
|
blob
|
blame
|
history
master/opt/cluster/rec/etc/rc.local
patch
|
blob
|
blame
|
history
master/opt/cluster/slave/etc/rc.local
patch
|
blob
|
blame
|
history
diff --git
a/master/opt/cluster/acq/etc/rc.local
b/master/opt/cluster/acq/etc/rc.local
index 72417e6ae61e805fcc9d5c005f4d61b180b8f172..5a9a5d94c6f4144ea29322f064b21a63def0e8e1 100755
(executable)
--- a/
master/opt/cluster/acq/etc/rc.local
+++ b/
master/opt/cluster/acq/etc/rc.local
@@
-8,16
+8,21
@@
#
# In order to enable or disable this script just change the execution
# bits.
#
# 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
l=0
-for i in $(awk '/eth0/ {sub(/:/, ""); print $1}' /proc/interrupts); do
-
echo ${core[$l]} > /proc/irq/$i/smp_affinit
y
- let l++
- [ $l -eq 6 ] && l=1
+
+
# fill screen of dummy lines to keep last messages in histor
y
+for i in $(seq 1 25); do
+ echo TRC6500
done
exit 0
done
exit 0
diff --git
a/master/opt/cluster/rec/etc/rc.local
b/master/opt/cluster/rec/etc/rc.local
index 03c36a059bb41b68295bebdb391eba65b95baef5..93e8b66c219584bfac10f1d8aeda349b57d98eb1 100755
(executable)
--- a/
master/opt/cluster/rec/etc/rc.local
+++ b/
master/opt/cluster/rec/etc/rc.local
@@
-8,10
+8,13
@@
#
# In order to enable or disable this script just change the execution
# bits.
#
# 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
# 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
exit 0
diff --git
a/master/opt/cluster/slave/etc/rc.local
b/master/opt/cluster/slave/etc/rc.local
index 563698d0bf4d39777571457c9781530eac98af42..9268f57b2dcdcffa0b87dce04dd817a6acfa8f08 100755
(executable)
--- a/
master/opt/cluster/slave/etc/rc.local
+++ b/
master/opt/cluster/slave/etc/rc.local
@@
-8,20
+8,10
@@
#
# In order to enable or disable this script just change the execution
# bits.
#
# 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
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
exit 0