Codebase list lcdproc / 3242f7e
fix (postinst): fix udevadm call The problem seen before occurs when udevadm is applied without restriction. See also https://bugzilla.kernel.org/show_bug.cgi?id=207695 Since udevadm is useful only for imon device (because that's the only device with a udev rule), let's restrict udevadm. imon is seen as a usb device: $ udevadm info /dev/lcd0 P: /devices/pci0000:00/0000:00:13.1/usb8/8-2/8-2:1.0/usbmisc/lcd0 N: lcd0 L: 0 S: lcd-imon E: DEVPATH=/devices/pci0000:00/0000:00:13.1/usb8/8-2/8-2:1.0/usbmisc/lcd0 E: DEVNAME=/dev/lcd0 E: MAJOR=180 E: MINOR=0 E: SUBSYSTEM=usbmisc E: USEC_INITIALIZED=10234683 E: DEVLINKS=/dev/lcd-imon so let's restrict udevadm to usbmisc susbsystem Dominique Dumont 3 years ago
1 changed file(s) with 3 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
00 #!/bin/sh -e
11
22 # activate udev rule before cme tries to upgrade the configuration
3 udevadm trigger --action=change || echo "Failed to run udevadm. This is a known bug which breaks imon setup. See https://bugzilla.kernel.org/show_bug.cgi?id=207695 for more information" >> /dev/stderr
3 # restrict to usb subsystem used by imon. This could be changed if
4 # udev rules are created for other devices.
5 udevadm trigger --action=change --subsystem-match=usbmisc
46
57 #DEBHELPER#