aboutsummaryrefslogtreecommitdiff
path: root/comms/usbmuxd/files/usbmuxd.conf.in
blob: b0cd9685332e50dc6013746ca243d3c0c3bfd9c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# This entry starts the Apple mobile device muxer 'usbmuxd' upon device attach
# of a matching Apple product including iPhone, iPad, and iPod. It also allows
# members of the '%%GROUPS%%' group to access the devices.
#
# Multiple devices may be attached simultaneously. The muxer will stop upon
# detach of the last matching device.

notify 100 {
	match "system"		"USB";
	match "subsystem"	"DEVICE";
	match "type"		"ATTACH";
	match "vendor"		"0x05ac";
	match "product"		"(0x12[9a][0-9a-f]|0x8600)";
	action "chgrp %%GROUPS%% /dev/$cdev; chmod g+rw /dev/$cdev";
	action "%%PREFIX%%/sbin/usbmuxd -U %%USERS%% -z";
};

notify 100 {
        match "system"          "USB";
        match "subsystem"       "DEVICE";
        match "type"            "DETACH";
        match "vendor"          "0x05ac";
	match "product"         "(0x12[9a][0-9a-f]|0x8600)";
	action "%%PREFIX%%/sbin/usbmuxd -x";
};