From: Gioele Barabucci <dev@gioelebarabucci.com>
To: linux-hotplug@vger.kernel.org
Subject: A little patch
Date: Fri, 26 Jan 2001 15:36:03 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-98053872820063@msgid-missing> (raw)
[-- Attachment #1: Type: text/plain, Size: 415 bytes --]
Hello everyone, I'm trying to set up my usb devices under Linux 2.4.0 but I
have not found any documentation so I started downloading packages and doing
tests... so i've patched a bit your package... here is the patch
All the comments added are in the format # PATCH comment so you can grep them
btw I suggest (I can do it if you agree) to make /etc/hotplug dir
configurable... I dislike that "cd /etc/hotplug"
[-- Attachment #2: the simple patch --]
[-- Type: text/plain, Size: 1075 bytes --]
diff -r ./hotplug-2001_01_23/etc/hotplug/hotplug.functions ./hotplug-gb/etc/hotplug/hotplug.functions
115a116,126
> # PATCH added function to
> list_avail_agents ()
> {
> for AGENT in /etc/hotplug/*.agent ; do
> # PATCH or should it list also non runnable agents?
> # PATCH insted of remove scripts, I often chmod a-x them...
> if [ -x $AGENT ] ; then
> echo `basename $AGENT | sed s/.agent//`
> fi
> done
> }
diff -r ./hotplug-2001_01_23/sbin/hotplug ./hotplug-gb/sbin/hotplug
24c24,26
< mesg "arguments ($*) env (`env`)"
---
> # mesg "arguments ($*) env (`env`)"
> mesg "\$* = \"$*\""
> mesg "\$1 = \"$1\""
30a33,37
>
> # PATCH $# don't behave well...
> # PATCH and [ -o ] is a false friend for bash programmers :))
> if [[ ( "$*" == "" ) || ( $1 == help ) || ( $1 == '--help' ) ]] ; then
> # PATCH use of "-t" without a fd specified is a bad hack IMHO
32d38
< if [ $# -lt 1 -o $1 = help -o $1 = '--help' ]; then
36a43,45
> # PATCH done...
> echo "Installed agents in this box are:"
> list_avail_agents
next reply other threads:[~2001-01-26 15:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-26 15:36 Gioele Barabucci [this message]
2001-01-30 22:46 ` A little patch David Brownell
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=marc-linux-hotplug-98053872820063@msgid-missing \
--to=dev@gioelebarabucci.com \
--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).