freebsd-scripts/bin/usb-power-save.sh

7 lines
266 B
Bash
Executable File

#!/bin/sh
# This oneliner turns powersave on usb hubs, excluding 0.1
# do usbconfig list and add another grep -v x.x to devices you wish not to do so
for i in $(usbconfig list | cut -f 1 -d ':' | cut -f 2 -d 'n' | grep -v 0.1); do usbconfig -d $i power_save; done