ok problen solved
thanks for you pacience Galaga
let me explain how i make this runing
i use the comand irexec
put on my startup lirc script for running after the lirc starts
# /etc/init.d/lircd
#!/bin/bash
### BEGIN INIT INFO
# Provides: lircd
# Required-Start: $syslog
# Required-Stop: $syslog
# Should-Start: $local_fs
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts LIRCD daemon.
# Description: LIRCD is used to control different
# infrared receivers and transceivers.
### END INIT INFO
case "$1" in
start)
/usr/local/sbin/lircd --driver=default --device=/dev/lirc0 --pidfile=/var/run/lirc0.pid --listen=8765
/usr/local/sbin/lircd --driver=default --device=/dev/lirc1 --pidfile=/var/run/lirc1.pid --output=/dev/lircd --connect=localhost:8765
chmod a+rw /dev/lcd* /dev/lirc*
export DISPLAY=:0
/usr/bin/irexec -d /home/reel/.lircrc
;;
stop)
killall lircd
killall -9 irexec
;;
*)
echo "Usage: /etc/init.d/lircd {start|stop}"
exit 1
;;
esac
then i make a file called .lircrc on /home/reel
and i put this config
begin
button = exit
prog = irexec
config = /etc/init.d/reelvdr restart
end
now wen i start the mediacenter the irexec runs on background and if i push the button exit he restart my reelvdr
wen i choose stanby on menu the mediacenter go to stand by and restart wen i push this button
cheers scubidoo