Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
According to (raspberrypi.org/forums/viewtopic.php?p=813383), sudo ./hub-ctrl -h 0 -P 2 -p 0 ; sleep 3; sudo ./hub-ctrl -h 0 -P 2 -p 1 should turn off USB power, wait three seconds, and turn it on again, without harming ethernet -- however, it was tested on a Raspberry Pi 2B.
sudo ./hub-ctrl -h 0 -P 2 -p 0 ; sleep 3; sudo ./hub-ctrl -h 0 -P 2 -p 1
should turn off USB power, wait three seconds, and turn it on again, without harming ethernet -- however, it was tested on a Raspberry Pi 2B.