Commit 79f8f7e0 authored by Jakub,Kolodziejski's avatar Jakub,Kolodziejski
Browse files

Update config_ser2net.sh to support IBM PAAM MicroZed serial console

parent ad647d0d
......@@ -49,6 +49,20 @@ else
echo "" >> $SER2NETCONF
fi
# Find the IBM PAAM MicroZed serial port and add the necessary lines to ser2net.conf if found
echo "Looking for IBM PAAM MicroZed"
IBM_PAAM_MICROZED_SERIAL=$(find /dev/serial/by-id/ -type l -name "usb-Silicon_Labs_CP2104_USB_to_UART_Bridge_Controller_*-if00-port0" | head -n 1)
if [ -z "$IBM_PAAM_MICROZED_SERIAL" ]
then
echo "None found"
else
echo "Found IBM PAAM MicroZed at: $IBM_PAAM_MICROZED_SERIAL"
echo "# IBM PAAM MicroZed serial console" >> $SER2NETCONF
echo "BANNER:banner_ibm_paam_microzed:Connected to IBM PAAM MicroZed Serial Console\r\n\r\n" >> $SER2NETCONF
echo "10003:telnet:600:$IBM_PAAM_MICROZED_SERIAL:115200 8DATABITS NONE 1STOPBIT banner_ibm_paam_microzed" >> $SER2NETCONF
echo "" >> $SER2NETCONF
fi
# Restart ser2net
echo "Restarting ser2net..."
systemctl restart ser2net
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment