[Unit]
Description=RPI PLC hardware configuration

[Service]
Type=oneshot
ExecStartPre=/bin/bash -c 'while [ ! -c /dev/ttySC* ]; do sleep 1; done; sleep 1'
ExecStart=/usr/local/bin/hw-config

[Install]
WantedBy=multi-user.target