Skip to content

Instantly share code, notes, and snippets.

Marco Tini marcotini

Block or report user

Report or block marcotini

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@marcotini
marcotini / rpi-usb.sh
Created May 31, 2018 — forked from hfreire/rpi-usb.sh
Enable/disable power on Raspberry Pi USB ports + Ethernet
View rpi-usb.sh
#!/bin/sh
SOC_USB=/sys/devices/platform/soc/20980000.usb
if [ ! -d $SOC_USB ];
then
SOC_USB=/sys/devices/platform/soc/3f980000.usb # Raspberry Pi 3
fi
BUSPOWER=$SOC_USB/buspower
You can’t perform that action at this time.