Swich ports offline if plugged during boot

Binary: http://colorfulpyro.de/fix-switch
Source: http://colorfulpyro.de/fix-switch.c

It simply unconditionally resets the 5 lan ports, sets them to 10/100/1000 half/full and no pause and then starts auto-negotiation. It is a bit unsafe as there are no locks or something like this in place. Do not call swconfig or ethtool while this runs.

It should be called after swconfig has setup the vlans because swconfig will reset the switch.

1 Like