treeder / logitech_unifier

A program to pair devices to a Logitech Unifying Receiver on Linux.
355 stars 49 forks source link

Added a helper script for folks that are not as technical #3

Closed tsaavik closed 12 years ago

tsaavik commented 12 years ago

Added a helper script for folks that are not as technical.

It will automatically compile the binary (if needed) mark it executable (if needed) find the Logitech device in hidraw run the script with additional prompting (turn off device first)

treeder commented 12 years ago

Awesome, thanks!

treeder commented 12 years ago

@tsaavik can you review README and let me know if it's right, assuming all user needs to do is run ./autopair.sh ?

tsaavik commented 12 years ago

That should do it! I only have access to 1 machine with a unified receiver (Ubuntu 12.04lts), but should work everywhere :smile:

tsaavik commented 11 years ago

That is...Interesting. the [[ test syntax has been available in Bash since version 2.0 released Dec 31st 1996 (had to go check, lol).

I guess it is possible they put 'sh' in-front of the bash script call out of (bad) habit.

treeder commented 11 years ago

ok, so should work for most people as is? Assuming they're using a bash shell from this century? ;)

tsaavik commented 11 years ago

Yeah, even if they are not running bash, the script has a sha-bang call to bash at the top.