18th Apr, 2013, 03:17 PM
"irexec -d" works only one times. If I want execute mapped comand again, I must execute irexec -d again. Why?
Terminal
xbian@xbian ~ $ cat .lircrc
begin
prog = irexec
button = key_open/close
config = sudo /home/xbian/irrestart.sh &
end
xbian@xbian ~ $ cat irrestart.sh
#!/bin/bash
service lirc stop
sleep 3
service lirc start
begin
prog = irexec
button = key_open/close
config = sudo /home/xbian/irrestart.sh &
end
xbian@xbian ~ $ cat irrestart.sh
#!/bin/bash
service lirc stop
sleep 3
service lirc start