summaryrefslogtreecommitdiff
path: root/src/extras/keymap/keyboard-force-release.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/extras/keymap/keyboard-force-release.sh.in')
-rwxr-xr-xsrc/extras/keymap/keyboard-force-release.sh.in18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/extras/keymap/keyboard-force-release.sh.in b/src/extras/keymap/keyboard-force-release.sh.in
index 154be3d733..dd040cebc3 100755
--- a/src/extras/keymap/keyboard-force-release.sh.in
+++ b/src/extras/keymap/keyboard-force-release.sh.in
@@ -5,18 +5,18 @@
# $2 file with scancode list (hex or dec)
case "$2" in
- /*) scf="$2" ;;
- *) scf="@pkglibexecdir@/keymaps/force-release/$2" ;;
+ /*) scf="$2" ;;
+ *) scf="@pkglibexecdir@/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
+ case "$scancode" in
+ \#*) ;;
+ *)
+ scancode=$(($scancode))
+ attr="$attr${attr:+,}$scancode"
+ ;;
+ esac
done <"$scf"
echo "$attr" >"/sys/$1/force_release"