Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7521

Troubleshooting • Re: Pi Zero 2W Ethernet Adapter Issues

$
0
0
As a quick fix to prevent this happening, I made a small systemd service:

Code:

sudo nano /etc/systemd/system/network-reset.service
Adding the following to that file:

Code:

[Unit]Description=Reset Ethernet Connection on BootAfter=network-online.target[Service]ExecStart=/bin/sh -c "sleep 5 && ip link set eth0 down && sleep 2 && ip link set eth0 up"Restart=no[Install]WantedBy=multi-user.target
Then enable the service:

Code:

sudo systemctl enable network-reset.servicesudo systemctl start network-reset.service
This does not solve the core problem, but it makes the Pi usable at least.

Statistics: Posted by Randomp — Thu May 01, 2025 1:33 am



Viewing all articles
Browse latest Browse all 7521

Trending Articles