[OLPC-AU] magic update usbkey

Sridhar Dhanapalan sridhar at laptop.org.au
Wed Feb 9 22:07:00 EST 2011

On 10 February 2011 12:37, Jerry Vonau <jvonau at shaw.ca> wrote:
> Hi All:
> Ever want to have an action occur when you plug your usbkey in on an XO?
> With a bit of udev magic that is possible. First you need to have a
> udev .rules file in place to trap the occurrence, I created
> /etc/udev/rules.d/99-setup.rules that contained, on one line:
> ACTION=="add", KERNEL=="sd*", SUBSYSTEM=="block",
> RUN+="/usr/bin/netcfg.sh"
> This will run the second part, /usr/bin/netcfg.sh file when any usbkey
> is inserted. In my case I'm searching the usbkey for certain files to be
> sourced. Just wondering if there would be any interest in extending this
> for something like installing activities and/or rpms, like
> olpc-configure can do but on demand.

A practical example of how this can be used: http://dev.laptop.org.au/issues/346


More information about the Devel mailing list