From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian =?iso-8859-1?q?Borntr=E4ger?= Date: Fri, 29 Apr 2005 07:09:47 +0000 Subject: Re: Finding sysfs mount point Message-Id: <200504290909.47766.linux-kernel@borntraeger.net> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Friday 29 April 2005 06:48, Greg KH wrote: > cat /proc/mounts | grep sysfs | cut -f 2 -d " " if sysfs is mounted several times, this results in a non useful value for scripting. what about cat /proc/mounts | grep -m 1 sysfs | cut -f 2 -d " " to get the first available mountpoint? cheers Christian ------------------------------------------------------- SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id5hix _______________________________________________ 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