diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-08-25 07:36:27 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-08-25 07:36:27 +0100 |
commit | 43793fab84041cfc5c60c0151d1591b8a69fb24a (patch) | |
tree | 6208a7f4fc744684fce0f55acbb47511acace498 /net-wireless/mousejack/files | |
parent | 28e3d252dc8ac8a5635206dfefe1cfe05058d1db (diff) |
gentoo resync : 25.08.2018
Diffstat (limited to 'net-wireless/mousejack/files')
-rw-r--r-- | net-wireless/mousejack/files/mousejack | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/net-wireless/mousejack/files/mousejack b/net-wireless/mousejack/files/mousejack new file mode 100644 index 000000000000..666ea47d9c9e --- /dev/null +++ b/net-wireless/mousejack/files/mousejack @@ -0,0 +1,42 @@ +#!/bin/sh + +usage() { + printf "The following firmware's are supported:\n" + printf "Nordic Semiconductor Bootloader\n" + printf "CrazyRadio Firmware\n" + printf "RFStorm Research Firmware\n" + printf "run \"mousejack install\"\n\n" + printf "To flash Logitech Unifying Dongle C-U0007\n" + printf "run \"mousejack logitech_install\"\n\n" +} + +if [ -z "${1}" ]; then + usage + exit 1 +fi + +#parse args +while true; do + case $1 in + -h|--help) + usage + exit 0 + ;; + install) + /usr/share/mousejack/prog/usb-flash.py /usr/share/mousejack/dongle.bin + exit $? + ;; + logitech_install) + /usr/share/mousejack/prog/logitech-usb-flash.py /usr/share/mousejack/dongle.formatted.bin /usr/share/mousejack/dongle.formatted.ihx + exit $? + ;; + --) + shift + break + ;; + *) + break + ;; + esac + shift +done |