From: "Christian Bornträger" <linux-kernel@borntraeger.net>
To: linux-hotplug@vger.kernel.org
Subject: Re: Finding sysfs mount point
Date: Fri, 29 Apr 2005 07:09:47 +0000 [thread overview]
Message-ID: <200504290909.47766.linux-kernel@borntraeger.net> (raw)
In-Reply-To: <d4rmhh$vjk$1@sea.gmane.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?id\x105hix
_______________________________________________
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
next prev parent reply other threads:[~2005-04-29 7:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-28 22:08 Finding sysfs mount point Ian Pilcher
2005-04-29 4:48 ` Greg KH
2005-04-29 7:09 ` Christian Bornträger [this message]
2005-05-04 17:51 ` Nico -telmich- Schottelius
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200504290909.47766.linux-kernel@borntraeger.net \
--to=linux-kernel@borntraeger.net \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).