Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1019845

Bug#966403: usbmux.rules file additional information

From Vernon Van Steenkist <vernonjvs@gmail.com>
Newsgroups linux.debian.bugs.dist
Subject Bug#966403: usbmux.rules file additional information
Date 2020-07-30 21:40 +0200
Message-ID <Aymzf-Kh-3@gated-at.bofh.it> (permalink)
References <Axppv-6P2-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


First, let me apologize for the initial poor bug report. I have since 
done further research and a have discovered that the 
/lib/udev/rules.d/39-usbmuxd.rules file in debian package 
usbmuxd_1.0.8+git20140527.e72f2f7-2_i386.deb supported both sysvinit and 
systemd. Please see contents below.

# usbmuxd ("Apple Mobile Device" muxer listening on /var/run/usbmuxd)

# Check for systemd running as pid 1
TEST=="/run/systemd/system/", ACTION=="add", SUBSYSTEM=="usb", 
ATTR{idVendor}=="05ac", ATTR{idProduct}=="12[9a][0-9a-f]", 
ENV{USBMUX_SUPPORTED}="1", ATTR{bConfigurationValue}="0", 
OWNER="usbmux", TAG+="systemd", ENV{SYSTEMD_WANTS}="usbmuxd.service", 
RUN+="/usr/bin/pkill -x -SIGUSR2 usbmux" GOTO="usbmuxd_systemd_end"

# Legacy udev
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", 
ATTR{idProduct}=="12[9a][0-9a-f]", ENV{USBMUX_SUPPORTED}="1", 
ATTR{bConfigurationValue}="0", OWNER="usbmux", RUN+="/usr/sbin/usbmuxd 
-u -U usbmux"

LABEL="usbmuxd_systemd_end"

# Exit usbmuxd when the last device is removed
ACTION=="remove", SUBSYSTEM=="usb", 
ENV{PRODUCT}=="5ac/12[9a][0-9a-f]/*", ENV{INTERFACE}=="255/*", 
RUN+="/usr/sbin/usbmuxd -x"


I have tested this version of the usbmuxd.rules file in Debian based 
systemd and sysvinit systems. It works perfectly

* usbmuxd starts when iphone or ipad is plugged in on both systemd and 
sysvinit systems

* systemctl status usbmuxd command outputs usbmuxd status correctly on 
systemd systems.


However, in the next Debian release, TEST=="/run/systemd/system/" was 
removed thus breaking usbmuxd on sysvinit systems.  Please revert back 
to the usbmuxd_1.0.8+git20140527.e72f2f7-2_i386.deb version in order to 
allow usbmuxd to load on sysvinit systems again.


Thanks

Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Bug#966403: Package: usbmuxd calls systemd in its udev rules so it will never start in Devuan Vernon Van Steenkist <vernonjvs@gmail.com> - 2020-07-28 06:30 +0200
  Bug#966403: usbmux.rules file additional information Vernon Van Steenkist <vernonjvs@gmail.com> - 2020-07-30 21:40 +0200

csiph-web