Package: lomoco
Version: 1.0beta1+1.0-2
Severity: normal

Suffice to say it took some talking to the udev upstream maintainer(!), but
the gist of the fact is that you do NOT want to use SYSFS{}!= the way you
were doing, it doesn't do what you'd expect.

Please use the attached awk file to generate the udev rules, and don't screw
with the SYSFS stuff tring to "economize space", it will just break.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (990, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15.6-debian8+bluesmoke+lm85
Locale: LANG=pt_BR.ISO-8859-1, LC_CTYPE=pt_BR.ISO-8859-1 (charmap=ISO-8859-1)

Versions of packages lomoco depends on:
ii  libc6                         2.3.6-4    GNU C Library: Shared libraries an
ii  libusb-0.1-4                  2:0.1.11-7 userspace USB programming library

Versions of packages lomoco recommends:
ii  udev                          0.088-2    /dev/ and hotplug management daemo

-- no debconf information

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh
#!/bin/awk -f
BEGIN {
        FS = ","
        print "# udev.rules file for Logitech mouse control using lomoco"
        print "#"
        print ""
        print "ACTION != \"add\", GOTO=\"lomoco_end\""
        print "SUBSYSTEM != \"usb_device\", GOTO=\"lomoco_end\""
        print ""
}

$1 ~ /0xc[a-f0-9][a-f0-9][a-f0-9]/ {
    print "# " substr($3, index($3, "\"")) ", " $2
    print "SYSFS{idVendor}==\"046d\", SYSFS{idProduct}==\"" substr($1, 
index($1, "x")+1) \
          "\", RUN+=\"udev.lomoco\""
    print ""
}

END {
        print ""
        print "LABEL=\"lomoco_end\""
}

Reply via email to