HEX
Server: Apache
System: Linux sg241.singhost.net 2.6.32-896.16.1.lve1.4.51.el6.x86_64 #1 SMP Wed Jan 17 13:19:23 EST 2018 x86_64
User: honghock (909)
PHP: 8.0.30
Disabled: passthru,system,shell_exec,show_source,exec,popen,proc_open
Upload Files
File: //lib/udev/keyboard-force-release.sh
#!/bin/sh -e
# 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="/lib/udev/keymaps/force-release/$2" ;;
esac

read attr <"/sys/$1/force_release"
while read scancode dummy; do
	case "$scancode" in
		\#*) ;;
		*)
			scancode=$(($scancode))
			attr="$attr${attr:+,}$scancode"
			;;
	esac
done <"$scf"
echo "$attr" >"/sys/$1/force_release"