Re: automount and autorun SOLVED

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux