public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* Re: [gentoo-user] udev + incron wheel's remake : hal/dbus usefulness quest
  @ 2009-09-18 15:27 99% ` Mike Kazantsev
  0 siblings, 0 replies; 1+ results
From: Mike Kazantsev @ 2009-09-18 15:27 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1276 bytes --]

On Fri, 18 Sep 2009 15:59:14 +0200
gibboris@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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2009-09-18 13:59     [gentoo-user] udev + incron wheel's remake : hal/dbus usefulness quest gibboris
2009-09-18 15:27 99% ` Mike Kazantsev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox