(usb tethering) what does hub-ctrl do?

I followed this guide to use my mobile connection on my router via usb. Everything went fine.

Then, in the same guide, I read the section that discusses the case of frequent failures and suggests a script to manage it.

Here is some lines:

/etc/init.d/network stop
hub-ctrl -h 0 -P 1 -p 0
sleep 1
hub-ctrl -h 0 -P 1 -p 1
/etc/init.d/network start

What does hub-crtl exactly do?

I have attached a usb-hub to the (only one) usb port of my router. One port is for the mobile, the other ones for usb drives.
So far I haven't any problem. But in case, is there any way that I can restart only the usb-wan network (and not the lan network) to not interrupting the usb drive shares?

Thank you for the clarifications.

It switches off USB power and then switches it on again.

1 Like