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:~$ -------------------- piCorePlayer a small player for the Raspberry Pi in RAM. Homepage: https://www.picoreplayer.org Please 'donate' (https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=U7JHY5WYHCNRU&lc=GB¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted) if you like the piCorePlayer ------------------------------------------------------------------------ paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 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