paul- wrote: 
> squeezelite runs as root.
> 
> I put your script on my system, and set /home/tc/myscript.sh in the web
> interface and it runs fine.   Verified by running uhubctl between
> toggles to make sure port 4 turns off and on.
> 
> I also ran from a shell session
> 
> > 
Code:
--------------------
  >   > 
  > tc@pCP7-Test:~$ /home/tc/myscript.sh 0
  > tc@pCP7-Test:~$ uhubctl
  > Current status for hub 1-1.1 [0424:2514]
  > Port 1: 0503 power highspeed enable connect [0424:7800]
  > Port 2: 0100 power
  > Port 3: 0100 power
  > Current status for hub 1-1 [0424:2514]
  > Port 1: 0503 power highspeed enable connect [0424:2514]
  > Port 2: 0100 power
  > Port 3: 0100 power
  > Port 4: 0000 off
  > Current status for hub 1 [1d6b:0002 Linux 5.4.73-pcpCore-v7 dwc_otg_hcd DWC 
OTG Controller 3f980000.usb]
  > Port 1: 0503 power highspeed enable connect [0424:2514]
  > tc@pCP7-Test:~$ /home/tc/myscript.sh 1
  > tc@pCP7-Test:~$ uhubctl
  > Current status for hub 1-1.1 [0424:2514]
  > Port 1: 0503 power highspeed enable connect [0424:7800]
  > Port 2: 0100 power
  > Port 3: 0100 power
  > Current status for hub 1-1 [0424:2514]
  > Port 1: 0503 power highspeed enable connect [0424:2514]
  > Port 2: 0100 power
  > Port 3: 0100 power
  > Port 4: 0100 power
  > Current status for hub 1 [1d6b:0002 Linux 5.4.73-pcpCore-v7 dwc_otg_hcd DWC 
OTG Controller 3f980000.usb]
  > Port 1: 0503 power highspeed enable connect [0424:2514]
  > tc@pCP7-Test:~$
  > 
--------------------
> > 

How could I be doing something wrong then?
i can run uhubctl from command line.


------------------------------------------------------------------------
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
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to