#==============================================================
#
#  Abs:  Startup Script for Shared Platform (dev)
#
#  Name: st.cmd
#
#  Desc: The processor is an Advantech 1U server,
#        SKY-8100 industrial pc/server.
#
#  Facility:  EED Shared Platform
#
#  Auth: dd-mmm-yyyy, Author's Name   (USERNAME)
#  Rev:  dd-mmm-yyyy, Reviewer's Name (USERNAME)
#--------------------------------------------------------------
#  Mod:
#        11-Jun-2020, K. Luchini      (LUCHINI):
#         extracted from $EPICS_IOCS/cpu-b84-sp01/kernel-modules.cmd
#         and renamed to st.cmd
#        30-Oct-2020, G. Brown        (GWBROWN)
#         Copied from cpu-b084-sp01
#
#==============================================================

# =========================================
# Turn on local IPMI Client support
# =========================================
echo "Load IPMI..."
modprobe ipmi_devintf
ipmitool lan print

# =========================================
# Network configuration
# =========================================
ifconfig eth0 192.168.1.2 netmask 255.255.255.0 up
ifconfig eth5 192.168.2.1 netmask 255.255.255.0 up

# =========================================
# Start DHCP server on eth0
# =========================================
#DHCPD_IF=eth0
#/sbin/ifconfig $DHCPD_IF 192.168.1.1 netmask 255.255.255.0 up
#. dhcpdStartup.sh $DHCPD_IF

# =============================================================
# Setup Python version
# =============================================================
cp -f ${EPICS_CPU_APP}/../../common/envPython.sh /etc/profile.d/
chmod 555 /etc/profile.d/envPython.sh

# While we still need python 2.7.9, also do this:
cp -f ${EPICS_CPUS}/${HOSTNAME}/GoPythonLinuxRTEnvs.sh /etc/profile.d/
chmod 555 /etc/profile.d/GoPythonLinuxRTEnvs.sh


# End of script'


