Thank you for your query.
I do believe this can be achieved with hub-ctrl package from OpenWRT.
Instructions(run the following commands in CLI):
1) opkg update
2)opkg install hub-ctrl
Then use command to turn off the power of the USB:
3) hub-ctrl -h 0 -P 1 -p 0
To turn the power of the USB back on again, use the following command:
4) hub-ctrl -h 0 -P 1 -p 1
For verification purposes i recommend to use:
5) hub-ctrl -v
- -h: hub
- -P: port
- -p: value (0 - pff, 1 - on)
Important Note: I have tested this on a RUT955 device with the currently newest firmware version: RUT9_R_00.07.00.2 . In addition, this is an OpenWRT package, therefore, use it with caution, it is not one of our package manager packages. Also, for other devices this should work the same way, however, I can't confirm this, it needs further testing.Lastly, here is a confirmation from routers CLI that it does work:
As can be seen, Port 1 prior running the command is set to 0000.0303 lowspeed power enable connect.
After executing the command: hub-ctrl -h 0 -P 1 -p 0 it changes to Port 1: 0000.0000 , which means it is off.