diff options
author | Linus Walleij <triad@df.lth.se> | 2011-01-08 22:50:07 +0000 |
---|---|---|
committer | Linus Walleij <triad@df.lth.se> | 2011-01-08 22:50:07 +0000 |
commit | c4cd50bbad70486750aef6cf134386265b4435ac (patch) | |
tree | 63b7455a9cc5db1a9bcf97245bd07f25645f7c08 /util/mtp-hotplug.c | |
parent | 01d5a73e32ea7b4a8d31904f41dd588d7f70e4c2 (diff) | |
download | libmtp-c4cd50bbad70486750aef6cf134386265b4435ac.tar.gz |
Update & document udev use
Diffstat (limited to 'util/mtp-hotplug.c')
-rw-r--r-- | util/mtp-hotplug.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/util/mtp-hotplug.c b/util/mtp-hotplug.c index 95807e4..a37366c 100644 --- a/util/mtp-hotplug.c +++ b/util/mtp-hotplug.c @@ -56,7 +56,14 @@ int main (int argc, char **argv) extern int optind; extern char *optarg; char *udev_action = NULL; - char default_udev_action[] = "SYMLINK+=\"libmtp-%k\", MODE=\"666\", ENV{ID_MTP_DEVICE}=\"1\", ENV{ID_MEDIA_PLAYER}=\"1\""; + /* + * You could tag on MODE="0666" here to enfore writeable + * device nodes, use the command line argument for that. + * Current udev default rules will make any device tagged + * with ENV{ID_MEDIA_PLAYER}=1 writable for the console + * user. + */ + char default_udev_action[] = "SYMLINK+=\"libmtp-%k\", ENV{ID_MTP_DEVICE}=\"1\", ENV{ID_MEDIA_PLAYER}=\"1\""; char *action; // To hold the action actually used. uint16_t last_vendor = 0x0000U; |