Closed chiboreache closed 2 weeks ago
sudo nano /etc/systemd/system/remove-ttys.service
[Unit]
Description=Remove /dev/ttyS* devices
[Service]
Type=oneshot
ExecStart=/bin/bash -c 'for i in {0..31}; do rm /dev/ttyS$i; done'
RemainAfterExit=true
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload && sudo systemctl enable --now remove-ttys.service