* A little patch
@ 2001-01-26 15:36 Gioele Barabucci
2001-01-30 22:46 ` David Brownell
0 siblings, 1 reply; 2+ messages in thread
From: Gioele Barabucci @ 2001-01-26 15:36 UTC (permalink / raw)
To: linux-hotplug
[-- 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
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: A little patch
2001-01-26 15:36 A little patch Gioele Barabucci
@ 2001-01-30 22:46 ` David Brownell
0 siblings, 0 replies; 2+ messages in thread
From: David Brownell @ 2001-01-30 22:46 UTC (permalink / raw)
To: linux-hotplug
I merged the guts of this into /sbin/hotplug.
You noticed a few problems that crept in when
things were converted a previous version ... :-)
Didn't change the /etc/hotplug though; that'd
sort of defeat the goal of being able to tell
end users where to install device setup scripts
(/etc/hotplug/usb/visor starting the visor sync
daemon, etc).
Thanks for the patch!
- Dave
----- Original Message -----
From: Gioele Barabucci <dev@gioelebarabucci.com>
To: <linux-hotplug-devel@lists.sourceforge.net>
Sent: Friday, January 26, 2001 7:36 AM
> 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"
>
>
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-01-30 22:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-26 15:36 A little patch Gioele Barabucci
2001-01-30 22:46 ` David Brownell
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).