# # rc-addon-script for plugin remote # check_device() { local handlers="${1}" local name="${2}" local eventdev="" [ "${handlers}" = "" ] && return local handler for handler in ${handlers}; do case "${handler}" in event*) eventdev=${handler} ;; esac done if [ "${eventdev}" = "" ]; then if [ "${evdev_warning_showed}" != "1" ]; then echo "you need to load module evdev for autodetect input-devices to work" evdev_warning_showed=1 fi return fi case "${name}" in *dvb*|*DVB*) einfo_level1 "Autodetect Input Device ${eventdev} (Name: ${name})" REMOTE_PLUGIN_INPUT_DEVICE="${REMOTE_PLUGIN_INPUT_DEVICE} /dev/input/${eventdev}" ;; esac } autodetect_input_devices() { [ -e /proc/bus/input/devices ] || return exec 3