SHUTDOWN_GREP=$(systemctl list-units -type=target | grep shutdown) REBOOT_GREP=$(systemctl list-units -type=target | grep reboot) The following additional script enables the RemotePi Board to cut off the power, after moOde audio has been shut down from the on-screen menu. Press ctrl+x to exit, y to confirm, enter to save the file.Power=$(cat /sys/class/gpio/gpio$GPIOpin1/value)Įcho "out" > /sys/class/gpio/gpio$GPIOpin1/directionĮcho "1" > /sys/class/gpio/gpio$GPIOpin1/value # this is the GPIO pin receiving the shut-down signalĮcho "$GPIOpin1" > /sys/class/gpio/exportĮcho "in" > /sys/class/gpio/gpio$GPIOpin1/direction Copy and paste the following text into the editor window.Press ctrl+x to exit the editor, y to confirm, enter to save the file.Copy and paste (use shift+ins to paste in nano) the following into the nano editor window, just above the last line (before the line exit 0).The rest of the instructions are the same as for Raspbian, moOde audio is based on Raspbian. The default SSH user name is pi, password moodeaudio
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |