keyboard-force-release.sh.in revision ad29a9f14fa8b1932c0e418bfcf1c10ce6a35a33
# read list of scancodes, convert hex to decimal and
# append to the atkbd force_release sysfs attribute
# $1 sysfs devpath for serioX
# $2 file with scancode list (hex or dec)
case "$2" in
/*) scf="$2" ;;
*) scf="@pkglibexecdir@/keymaps/force-release/$2" ;;
esac
read attr <"/sys/$1/force_release"
\#*) ;;
*)
;;
esac
done <"$scf"
echo "$attr" >"/sys/$1/force_release"