Skip to content

Commit

Permalink
Fixing #11
Browse files Browse the repository at this point in the history
  • Loading branch information
systemofapwne committed May 19, 2022
1 parent 28f6ad6 commit 306a26c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install_files/udev/leetmouse_manage
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fi

# Find all devices, which are currenlty bount to leetmouse and unbind them (+ rebind to usbhid)
# Note: Only works, if the udev rules are disabled. This manage function is mainly used for the uninstall process
if [ $1 == "unbind_all" ]; then
if [ $1 = "unbind_all" ]; then
# Temporarily disable binding via udev to leetmouse
echo -ne "1" > /sys/module/leetmouse/parameters/no_bind

Expand All @@ -41,7 +41,7 @@ if [ $1 == "unbind_all" ]; then
fi

# Triggers a udev refresh so it binds all pointer devices to leetmouse
if [ $1 == "bind_all" ]; then
if [ $1 = "bind_all" ]; then
udevadm control --reload-rules
udevadm trigger --subsystem-match=usb --subsystem-match=input --subsystem-match=hid --attr-match=bInterfaceClass=03 --attr-match=bInterfaceSubClass=01 --attr-match=bInterfaceProtocol=02
fi

0 comments on commit 306a26c

Please sign in to comment.