From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MofN2-0001ho-Jd for garchives@archives.gentoo.org; Fri, 18 Sep 2009 15:27:36 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D645DE08DA; Fri, 18 Sep 2009 15:27:34 +0000 (UTC) Received: from mail-fx0-f211.google.com (mail-fx0-f211.google.com [209.85.220.211]) by pigeon.gentoo.org (Postfix) with ESMTP id 3E426E08DA for ; Fri, 18 Sep 2009 15:27:34 +0000 (UTC) Received: by fxm7 with SMTP id 7so764258fxm.34 for ; Fri, 18 Sep 2009 08:27:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type; bh=yB0fFerT1xTz8G3rPe8h+2lX1nGlP63BahRcbIDfxVg=; b=nOqn9WiMT/DJfYoUPG/t2+tcZvOF29wllA2FIpmBRcMz2SnCSokqEI5+Z5Ut0jFwAV WdKh4sMDZU8pHzhQs/kNRpvxmvLWcyWtW5gB/0DapizyjvORklqF42w9LW3CVCMJ0r/O I3dMUDC+ukDvsBUcnZtGnXtCgDiJgZm4Pt9QI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type; b=KartsDylE1QXGnALDaAPgEKyxpQ8HlEj8sRA3BRVzjHtlN4K1LrTjStngn8NXPnqQc XDwp8ShPlQwGAELHDNBKN7azJXeCBnshPwSkqF0Xsp9oAvwpYOsovRTUDn+FXibSreX8 qXdbKcGqCWPwdeDDPfOTn3jbMSfpsnIetpgLA= Received: by 10.204.23.66 with SMTP id q2mr1586537bkb.191.1253287653449; Fri, 18 Sep 2009 08:27:33 -0700 (PDT) Received: from coercion ([91.191.238.58]) by mx.google.com with ESMTPS id h2sm1668902fkh.36.2009.09.18.08.27.32 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 18 Sep 2009 08:27:32 -0700 (PDT) Date: Fri, 18 Sep 2009 21:27:16 +0600 From: Mike Kazantsev To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] udev + incron wheel's remake : hal/dbus usefulness quest Message-ID: <20090918212716.31273b43@coercion> In-Reply-To: <20090918135914.GA14282@b1b1.lan> References: <20090918135914.GA14282@b1b1.lan> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.16.5; i686-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/9yF5J/U9q4NurIvzSHG/qZp"; protocol="application/pgp-signature" X-Archives-Salt: ada2ea7a-fd31-47f0-bf22-82a2efe739bf X-Archives-Hash: bfb7d9b8c245ec8a7c81d307757aabfe --Sig_/9yF5J/U9q4NurIvzSHG/qZp Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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. --=20 Mike Kazantsev // fraggod.net --Sig_/9yF5J/U9q4NurIvzSHG/qZp Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) iEYEARECAAYFAkqzptoACgkQASbOZpzyXnH8OQCglJCTEAndFlF6Q566sogWZKIp HFIAn0VJZLmcXjkczojKiRfqalRpGTRx =4F2q -----END PGP SIGNATURE----- --Sig_/9yF5J/U9q4NurIvzSHG/qZp--