From 43793fab84041cfc5c60c0151d1591b8a69fb24a Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 25 Aug 2018 07:36:27 +0100 Subject: gentoo resync : 25.08.2018 --- net-wireless/mousejack/files/mousejack | 42 ++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 net-wireless/mousejack/files/mousejack (limited to 'net-wireless/mousejack/files') 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 -- cgit v1.2.3