Hi,
I have an AR300M and I search a way to switch the USB-Port in a script on/off
Thanx Asado
Hi,
I have an AR300M and I search a way to switch the USB-Port in a script on/off
Thanx Asado
find the correct file for controlling the USB:
ls /sys/class/leds/usbpow
Then control the USB power using it
echo 0 > /sys/class/leds/…usbpow…/brightness
echo 1 > /sys/class/leds/…usbpow…/brightness
Wow, thank you very much.
It works great
OFF
echo 0 > /sys/devices/platform/leds-gpio/leds/gl-ar300m:usbpow/brightness
ON
echo 1 > /sys/devices/platform/leds-gpio/leds/gl-ar300m:usbpow/brightness