From: Bandan Date: Sat, 29 Jul 2006 19:49:39 +0000 Subject: ipod and hotplug Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org Hi! I am Bandan and new to the list. Sorry if I am on the wrong list but this seemed to be the most promising solution after being lost on the web for a long time :) I am trying to use hotplug to automatically mount my ipod nano when I plug it into my computer.I found in the usb.distmap file that there are two match flags for usb-storage: 0x000f and 0x0380. So, I add the following entries in my usb.usermap file : usb-storage 0x000f 0x05ac 0x120a 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000 usb-storage 0x0380 0x05ac 0x120a 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000 Then, I write a small shell script called usb-storage and make it executable and place it in /etc/hotplug/usb with the following lines: #!/bin/sh mount /dev/sda2 /mnt/ipod But when I restart hotplug nothing seems to happen. Can anyone please suggest where or what I am doing wrong ? Is this the correct method to do so or am I doing something seriously wrong ? Thanks in advance Bandan ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=DEVD= EV _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel