paul- wrote:
> Likely need to reference the full path to the binary.
>
> /usr/local/sbin/uhubctl
I tried
Code:
--------------------
#!/bin/sh
#----------------------------------------------------------------------------------------
# Script for turning RPi3 USB output on/off when Squeezelite player is turned
on/off.
# This script requires that extension uhubctl.tcz is installed.
# Enter the path to this "Power On/Off Script" on the pCP Squeezelite
Settings page.
# https://github.com/mvp/uhubctl#raspberry-pi-b2b3b
#----------------------------------------------------------------------------------------
# squeezelite -S /home/tc/usb-power-on-off.sh
#
# squeezelite sets $1 to:
# 0: off
# 1: on
#----------------------------------------------------------------------------------------
case $1 in
0) /usr/local/sbin/uhubctl -l 1-1 -p 4 -a 0 >/dev/null 2>&1 ;;
1) /usr/local/sbin/uhubctl -l 1-1 -p 4 -a 1 >/dev/null 2>&1 ;;
esac
--------------------
with no luck. How can I tell the state of squeezelite ($1)?
------------------------------------------------------------------------
slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609
View this thread: http://forums.slimdevices.com/showthread.php?t=112760
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix