Thank you for your donation!


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


How Do i Reboo t
#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


Messages In This Thread
How Do i Reboo t - by avior - 09-01-2024, 11:09 AM
RE: How Do i Reboo t - by avior - 09-01-2024, 01:30 PM
RE: How Do i Reboo t - by Tim Curtis - 09-01-2024, 02:30 PM
RE: How Do i Reboo t - by avior - 09-03-2024, 01:21 PM

Forum Jump: