From mboxrd@z Thu Jan 1 00:00:00 1970 From: juuso.alasuutari@tamperelainen.org Date: Sun, 21 May 2006 01:00:07 +0000 Subject: Re: CD Symlinks Solution Idea Message-Id: <1148173207.446fbb979ab62@cs1.alpha12.l-secure.net> List-Id: References: <44677DD3.80801@jg555.com> In-Reply-To: <44677DD3.80801@jg555.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Quoting Harald Hoyer : > Jim Gifford wrote: > > if [ -e /dev/cdrom$link ]; then > > link=$[$link+1] > > else > > test=1 > > echo $link > > Does not really work, because everything can be run in parallel, what you > need is some semaphore like "test > and create device" operation, which has to be atomic :) > Can you be more specific? I'm also working on a symlink naming helper (based on Jim Gifford's script), but i'm afraif I can't understand the terms you use. Juuso ---------------------------------------------------------------- This mail sent through L-secure: http://www.l-secure.net/ ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel