#
# Makefile and (un-)Installer for Sapphire remote control driver,
-# by Mark Lord 2012-2018.
+# by Mark Lord 2012-2019.
#
MODNAME=sapphire
MODSOURCE=$(MODNAME).c
/*
* sapphire.c
*
- * Copyright Mark Lord <mlord@pobox.com>, 2012-2018.
+ * Copyright Mark Lord <mlord@pobox.com>, 2012-2019.
* http://rtr.ca/sapphire_remote/
*
* This is a HID driver for the TopSeed Cyberlink receiver
#include "sapphire.h"
#define SAPPHIRE_NAME "sapphire"
-#define SAPPHIRE_VERSION "7.1"
+#define SAPPHIRE_VERSION "7.2"
/*
* "LONGKEY": Any button can be used to generate a second, different keycode,
#
TOPSEED=/sys/bus/hid/drivers/topseed
SAPPHIRE=/sys/bus/hid/drivers/sapphire
-rmmod hid-topseed &>/dev/null
+#rmmod hid-topseed &>/dev/null
modprobe sapphire &>/dev/null
+
+# Transfer control of devices bound to hid-topseed over to sapphire
if [ -d $SAPPHIRE -a -e $TOPSEED/unbind ]; then
cd $TOPSEED
for dev in [0-9]*[-0-9A-F] ; do
fi
done
fi
+rmmod hid-topseed &>/dev/null
+
#
# Ubuntu/Mint kernels (and likely others too) don't like it
# when we unload and reload the sapphire driver.