Hello,
I've posted this question on the Arch Linux forums but I guess this is a better forum for my question. I'm working with a Wandboard Quad with Arch Linux installed.
Newbe here so be gentle.
I want to capture keystrokes send out by the LIRC dongle. I made a script file which runs correctly when I run it from the command line. But it doesn't seem to work when ir runs as a service.
Basically, what I've done is this:
$this->bbcode_second_pass_code('', '
#!/bin/bash
while true
do
read -n 1 ir_code
case $ir_code in
"W")
echo "... inschakelen"
echo 1 > /sys/class/gpio/gpio200/value
sleep 2
echo 1 > /sys/class/gpio/gpio91/value
;;
"Z")
echo "Uitschakelen ..."
echo 0 > /sys/class/gpio/gpio91/value
sleep 2
echo 0 > /sys/class/gpio/gpio200/value
;;
esac
done
')
Is there a reason why this won't work as a service?