This commit is contained in:
2024-09-13 09:59:18 +02:00
commit fd02191803
5 changed files with 54 additions and 0 deletions

32
AutoStart.sh Executable file
View File

@@ -0,0 +1,32 @@
#!/bin/bash
IAM=$(basename $0)
echo "${IAM}: PWD=$(pwd)"
echo "${IAM}: PATH=$PATH"
case ${IAM} in
AutoStart.sh)
PREFIX="S"
;;
AutoStart-postEPICS.sh)
PREFIX="P"
;;
*)
echo "***** Script name should be AutoStart.sh | AutoStart-postEPICS.sh only"
exit 1
;;
esac
MYAUTOSTARTDIR=AutoStart
if [ -d ${MYAUTOSTARTDIR} ]
then
for f in ${MYAUTOSTARTDIR}/${PREFIX}[0-9][0-9]*
do
if [ -x ${f} ]
then
echo "${IAM}: starting ${f}"
${f}
fi
done
fi

5
AutoStart/S10-ecmc-python-venv Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
cp -r /ioc/ecmc_python_venv/.venv /tmp/

7
AutoStart/S10-eth-irq-prio Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
#echo "I am in ${0}"
# set IRQ priority=92 for all EtherCAT kernel threads (default is 50)
/usr/local/bin/set-irq-threads-priority.sh enp2s0 92
/usr/local/bin/set-irq-threads-priority.sh enp4s0 92

9
AutoStart/S10-performance Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
#echo "I am in ${0}"
# activate performance power saving mode
find /sys/devices/system/cpu -name scaling_governor -exec sh -c 'echo performance > {}' ';'
# disable turbo mode (if not already disabled in BIOS)
find /sys/devices/system/cpu -name no_turbo -exec sh -c 'echo 1 > {}' ';'

1
ETHERCATDRVR Executable file
View File

@@ -0,0 +1 @@
DEVICE_MODULES="igb generic"