View Single Post

   
  #8 (permalink)  
Old 02-20-2008, 12:02 PM
Joost Kremers
 
Posts: n/a
Default Re: Auto mount of removables

steelneck wrote:
> Joost Kremers wrote:
>> steelneck wrote:
>>
>>>supermount-fstab-line. But how does one get the kernel
>>>to run a script with the right arguments? or the other
>>>way around, have a script listen to kernel... syslog??

>>
>> udev.
>>

> No, not really.


yes, really. you want the kernel to run a script when a specific device is
plugged in. udev provides this functionality. from 'man udev':

PROGRAM
Call external program. This key is valid if the program
returns successful. The environment vari* ables of udev are
also available for the program. The string returned by the
program may be additionally matched with the RESULT key.

perhaps hotplug alone can do it, at least the description in the man page
would suggest so. i just never did anything with hotplug other than install
it, so i can't tell for sure.

--
Joost Kremers joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)
Reply With Quote