Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


How Do i Reboo t
#1
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
Reply
#2
(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
Reply
#3
You could also use the built in script

Code:
sudo /var/local/www/commandw/restart.sh reboot
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#4
(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
Reply


Forum Jump: