* Didier 'OdyX' Raboud <o...@debian.org>, 2014-08-03, 01:21:
* The udev rule seems to be working

As I noted previously, it didn't work here, unless I renamed the rule file. But now I checked again, and it works without renaming. Very odd. Possibly related bug: #754348

Jakub: could you (out of luck) try the attached patch that reverts this?

I don't think this will be necessary; see below.

More importantly, jimctl doesn't seem to honour TMPDIR. :-(
Thanks for the catch, I've reported this upstream:
https://github.com/msteveb/jimtcl/issues/17

So I cherry picked the upstream patch for jimtcl, and patched /lib/udev/usb_modeswitch to use TMPDIR. Now the device switches correctly. \o/

--
Jakub Wilk
--- usb_modeswitch.sh	2014-08-02 21:46:14.000000000 +0200
+++ /lib/udev/usb_modeswitch	2014-08-03 19:02:34.804000000 +0200
@@ -75,6 +75,7 @@
 esac
 exec 1<&- 2<&- 5<&- 7<&-
 (
+		export TMPDIR=/run
 		. /lib/udev/hotplug.functions
 		wait_for_file /usr/sbin/usb_modeswitch_dispatcher
 		if [ -x /sbin/initctl ] && /sbin/initctl version 2>/dev/null | /bin/grep -q upstart; then # Test if upstart is running

Reply via email to