You are not logged in.

#1 2015-08-11 00:52:45

mrdaltro
Member
From: Brazil
Registered: 2015-08-10
Posts: 4

How can I perform two command when I connect a specific USB device?

Hey guys! I'm newbie... a Linux newbie (noot so much), a forum newbie, and an english newbie (ya, I'm brazilian õ/).

So, I'll say my question for you.
I have a cell phone, and I want to perform two commands when it is plugged ('ifuse --root /mnt/iphone' and then 'caja /mnt/iphone'). The device ID is 05ac:12a0 - I get this how output of 'lsusb' command, logged with a normal account.

How can I make it?
Thanks, anyway...

Ps.: If possible, I also want to make a icon visible at desktop (it's a, commonly, hidden shortcut for /mnt/iphone).

Last edited by mrdaltro (2015-08-11 00:56:23)

Offline

#2 2015-08-11 00:58:44

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: How can I perform two command when I connect a specific USB device?

Offline

#3 2015-08-11 01:01:38

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,212

Re: How can I perform two command when I connect a specific USB device?

You could probably make a udev rule to auto mount it for you.

Offline

Board footer

Powered by FluxBB