Loading

Report as inappropriate

Greetings,

I'm trying to add a delay to the power_off script and also include shutdown of the usb port(to disable the display) by adding the following to the power_off.sh file. While it works fine from the command line, Octoprint throws errors when I try to run it from the UI. The script is shown below. Appreciate your feedback

gpio export 23 out
(sleep 150 && gpio -g write 23 1)&
sudo ./hub-ctrl -h 0 -P 2 -p 0