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

Reply via email to