On Friday 15 July 2011 13:58:16 Lennart Poettering wrote: > On Fri, 15.07.11 11:14, Barry Scott (barry.sc...@onelan.co.uk) wrote: > > > In F13 days we used HAL to call out to our code to handle > > adding and removal of USB storage with this > > /etc/hal/fdi/policy/90-onelan-mount.fdi policy file. > > > > <?xml version="1.0" encoding="UTF-8"?> > > <deviceinfo version="0.2"> > > <device> > > <match key="volume.fsusage" string="filesystem"> > > <match key="@info.parent:storage.bus" string="usb"> > > <append key="info.callouts.add" > > type="strlist">ntb_mount_usb -v</append> > > <append key="info.callouts.remove" > > type="strlist">ntb_mount_usb -v</append> > > </match> > > </match> > > </device> > > </deviceinfo> > > > > Do you recommmend staying with hal in F15 or using some other mechanism? > > You can use udev rules. to pull this in.
Thanks for the pointer. I used udev and created these rules: ACTION=="add", SUBSYSTEM=="block", SUBSYSTEMS=="usb", RUN+="/usr/local/onelan/ntb/bin/ntb_mount_usb" ACTION=="remove", SUBSYSTEM=="block", SUBSYSTEMS=="usb", RUN+="/usr/local/onelan/ntb/bin/ntb_mount_usb" Barry _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel