31
Мар
0

скрипт включение и выключене питание на USB ( CENTOS6)

скрипт включения и выключения питание на USB

#!/bin/sh
 echo "Выключение питания"
 echo suspend > /sys/bus/usb/devices/~( 3-2:1.1 -> ../../../devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2:1.1)/power/level  sleep 20
 echo "Включение питания"
 echo on > /sys/bus/usb/devices/~( 3-2:1.1 -> ../../../devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2:1.1)/power/level
Enjoyed reading this post?
Subscribe to the RSS feed and have all new posts delivered straight to you.

Comments are closed.

Celadon theme by the Themes Boutique