target = {
# target type: 0=file, 1=unix socket, 2=command
type = 2
# target path. If type=0|1 path to file, if type=2 it's command string
path = "/usr/local/etc/mykeys.sh '%s'"
# data packet mode: 0=hex, 1=string
mode = 1
}
#!/bin/sh
#
if [ "$1" == '0xb34cff00' ] ; then # for example! 0xb34cff00 code of power button
# execute poweroff script
/usr/local/etc/poweroff start
else
# send command to irfake
echo $1 > /sys/devices/platform/VenusIR/fakekey
fi
Users browsing this forum: norekon and 47 guests