Created
August 19, 2014 01:55
-
-
Save codeniko/fc4a8d73e6956c767aeb to your computer and use it in GitHub Desktop.
Fix the wireless mouse if not responding.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <unistd.h> | |
#include <stdlib.h> | |
int main() { | |
setuid(0); | |
system("/sbin/modprobe -r hid_logitech_dj && /sbin/modprobe hid_logitech_dj"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
compile and place binary into a dir thats in PATH, ex: /usr/local/bin/
chown root:niko /usr/local/bin/mousefix
chmod 4750 /usr/local/bin/mousefix