On Fri, 18 Sep 2009 15:59:14 +0200
gibbo...@gmail.com wrote:

> A small email to sumarize some thoughts about udev, removable
> storage and incron to make the job of hal and re-invent the wheel.
...
> I would be curious to read some advices about this architecture.

Nice. I have a temptation to copy-paste it right now, but there's just
no point, since I can't remember when I last plugged in an unknown
device.

> I also have 2 questions :
> - what's the way to have a incremental number for unknown devices like
>   /mnt/remusb1 then /mnt/remusb2 instead of /mnt/remusb (within udev) ?

Prehaps create a simple script that reads /etc/mtab and checks what
remusb mountpoints are used, picking a free one or creating additional
path.

> - where to put the creation of /tmp/.incron.device in the init scripts
>   to be sure it will be created BEFORE incron starts (without having to
>   create a new startup script) ?

Since it belongs to incron (and useless without one), shouldn't it be
only logical to put these lines into incron init.d script?
Sure, there'd be one more etc-update line if someone will ever change
the file, but that shouldn't happen too often, and besides, that's what
etc-update is for.

-- 
Mike Kazantsev // fraggod.net

Attachment: signature.asc
Description: PGP signature

Reply via email to