#!/bin/sh
sed 's/115200,38400,9600/2400/g' /lib/systemd/system/serial-getty@.service | sudo dd of=/lib/systemd/system/serial-getty@ttyUSB0.service
sed 's/115200,38400,//g' /lib/systemd/system/serial-getty@.service | sudo dd of=/lib/systemd/system/serial-getty@ttyUSB0.service
ls -ls /lib/systemd/system/serial*
cat /lib/systemd/system/serial-getty@ttyUSB0.service
sudo systemctl daemon-reload
sudo systemctl stop serial-getty@ttyUSB0.service
sudo systemctl disable serial-getty@ttyUSB0.service
sudo systemctl enable serial-getty@ttyUSB0.service
if [ -f /dev/ttyUSB0 ]
then
    sudo systemctl start serial-getty@ttyUSB0.service
    sleep 5
    ps -ef | grep USB0 | grep -v grep
fi


