Moode Forum
How Do i Reboo t - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: How Do i Reboo t (/showthread.php?tid=6867)



How Do i Reboo t - avior - 09-01-2024

is there a command to reboot mood audio via remote control

I have tried the following but no luck
bit confused 

begin
prog = irexec
button = KEY_0
config = mpc sudo reboot
end

thanks


RE: How Do i Reboo t - avior - 09-01-2024

(09-01-2024, 11:09 AM)avior Wrote: is there a command to reboot mood audio via remote control

I have tried the following but no luck
bit confused 

begin
prog = irexec
button = KEY_0
config = mpc sudo reboot
end

thanks

ok I figure it  if anyone need it it below

make commands in a script file /home/pi/reboot.sh


#!/bin/bash
mpc stop
sudo reboot


sudo chmod +x /home/pi/reboot.sh

------------------------------------------------------
then in edit  nano ~/.lircrc

put this to get reboot to work

begin
prog = irexec
button = KEY_POWER
config = /home/pi/reboot.sh
end



RE: How Do i Reboo t - Tim Curtis - 09-01-2024

You could also use the built in script

Code:
sudo /var/local/www/commandw/restart.sh reboot



RE: How Do i Reboo t - avior - 09-03-2024

(09-01-2024, 02:30 PM)Tim Curtis Wrote: You could also use the built in script

Code:
sudo /var/local/www/commandw/restart.sh reboot

thanks tim got it working