FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 08-04-2008, 05:36 AM
Maurizio Marini
 
Default automount and autorun SOLVED

On Thursday 31 July 2008, Mikkel L. Ellertson wrote:
> Maurizio Marini wrote:
> > My target is to use an "autorun" bash script when an usb pen is
> > automounted like http://linlog.skepticats.com/content/udevautorun/
> > describe.
> >
> > With recent kernels hotplug is vanished replaced by udev; there is
> > no /etc/dev.d or /etc/hotplug, anymore.
> > I am not able to find a place where put bash script to be executed.
> > I read tons of google udev links w/out result, yet.
> > Any advice would be apreciated
> >
> > Maurizio
>
> It is /etc/udev and /etc/hotplug.d. But HAL handles things like
> mounting USB pen drives. So you will probably have to add a HAL rule
> to do this...
>
> Mikkel

cat /etc/udev/rules.d/81-programs-local.rules
ACTION=="add", KERNEL=="sdb1", SUBSYSTEM=="block", RUN+="/root/usbpen"

the key is to use the RUN option to autoRUN a script when usben is mounted
thnx
Maurizio

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 

Thread Tools




All times are GMT. The time now is 09:17 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org