From: Piter PUNK <piterpk@terra.com.br>
To: linux-hotplug@vger.kernel.org
Subject: Re: rule_generator.functions: invalid PATH?
Date: Tue, 07 Nov 2006 12:39:34 +0000 [thread overview]
Message-ID: <45507E86.4000309@terra.com.br> (raw)
In-Reply-To: <454EA668.7030203@kadzban.is-a-geek.net>
Kay Sievers wrote:
> On 11/7/06, Marco d'Itri <md@linux.it> wrote:
>> On Nov 07, Piter PUNK <piterpk@terra.com.br> wrote:
>>
>>>> Which distributions do not provide readlink in /bin?
>> And how many of these distributions actually support a stand-alone /usr?
>> The affected maintainers can easily modify the script.
>
> Can't we do the silly "cd, pwd" trick we do in path_id?
Maybe it work:
sysreadlink() {
local file="$1"
local LINK=""
local i
[ -e "/sys$DEVPATH/$file" ] || return 0
cd /sys$DEVPATH
for i in `ls -la $i | grep \>`; do LINK="$i"; done
cd $LINK
/bin/pwd
}
I do a quick test with /block/hdc (my cdrom) and it works fine.
Piter PUNK
--
| E-Mail: piterpk@terra.com.br (personal)
.|. roberto.batista@ntux.com.br (professional)
/V\
// \\ UIN:116043354 Homepage:http://piterpunk.info02.com.br
/( )\
^`~'^ ----> Slackware Linux - The Best One! <----
#105432
-------------------------------------------------------------------------
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&kid\x120709&bid&3057&dat\x121642
_______________________________________________
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:[~2006-11-07 12:39 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-06 3:05 rule_generator.functions: invalid PATH? Bryan Kadzban
2006-11-06 20:20 ` Marco d'Itri
2006-11-06 23:23 ` Bryan Kadzban
2006-11-06 23:42 ` Dan Nicholson
2006-11-07 11:35 ` Piter PUNK
2006-11-07 11:39 ` Marco d'Itri
2006-11-07 11:44 ` Piter PUNK
2006-11-07 12:22 ` Kay Sievers
2006-11-07 12:39 ` Piter PUNK [this message]
2006-11-07 12:42 ` Marco d'Itri
2006-11-07 12:56 ` Piter PUNK
2006-11-07 12:57 ` Kay Sievers
2006-11-07 12:58 ` Marco d'Itri
2006-11-07 13:09 ` Piter PUNK
2006-11-07 13:14 ` Marco d'Itri
2006-11-07 13:17 ` MUNEDA Takahiro
2006-11-07 13:19 ` Piter PUNK
2006-11-07 17:49 ` Piter PUNK
2006-11-07 17:55 ` Bryan Kadzban
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=45507E86.4000309@terra.com.br \
--to=piterpk@terra.com.br \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.