From: "Marco d'Itri" <md@Linux.IT>
To: linux-hotplug@vger.kernel.org
Subject: hotplug patches: fixes and sysfs support 1/5
Date: Sun, 07 Mar 2004 12:42:43 +0000 [thread overview]
Message-ID: <20040307124243.GA4291@wonderland.linux.it> (raw)
In-Reply-To: <20040205010507.GA12825@wonderland.linux.it>
[-- Attachment #1: Type: text/plain, Size: 82 bytes --]
000_small_fixes: fixed some small bugs.
--
ciao, |
Marco | [4956 adXbsurXEy5zg]
[-- Attachment #2: 000_small_fixes --]
[-- Type: text/plain, Size: 3433 bytes --]
diff -ruN hotplug-2004_01_05.orig/etc/hotplug/ieee1394.agent hotplug-2004_01_05/etc/hotplug/ieee1394.agent
--- hotplug-2004_01_05.orig/etc/hotplug/ieee1394.agent 2003-09-16 21:42:17.000000000 +0200
+++ hotplug-2004_01_05/etc/hotplug/ieee1394.agent 2004-02-04 20:53:28.000000000 +0100
@@ -98,7 +98,7 @@
load_drivers ieee1394 $MAP_CURRENT "$LABEL"
fi
- if [ "$DRIVERS" == "" ]; then
+ if [ "$DRIVERS" = "" ]; then
mesg "... no drivers for $LABEL"
exit 2
fi
diff -ruN hotplug-2004_01_05.orig/etc/hotplug/input.agent hotplug-2004_01_05/etc/hotplug/input.agent
--- hotplug-2004_01_05.orig/etc/hotplug/input.agent 2003-10-14 01:46:58.000000000 +0200
+++ hotplug-2004_01_05/etc/hotplug/input.agent 2004-02-04 20:58:05.000000000 +0100
@@ -154,7 +154,7 @@
declare -i matchBits
declare -i bustype vendor product version
declare -i evBits driverInfo
- declare relBits mscBits ledBits sndBitskeyBits absBits ffBits
+ declare relBits mscBits ledBits sndBits keyBits absBits ffBits
while read line
do
@@ -172,7 +172,7 @@
bustype="$3"
vendor="$4"
product="$5"
- product="$6"
+ version="$6"
evBits="$7"
keyBits="$8"
diff -ruN hotplug-2004_01_05.orig/etc/hotplug/pci.agent hotplug-2004_01_05/etc/hotplug/pci.agent
--- hotplug-2004_01_05.orig/etc/hotplug/pci.agent 2003-09-16 21:42:17.000000000 +0200
+++ hotplug-2004_01_05/etc/hotplug/pci.agent 2004-02-04 20:53:28.000000000 +0100
@@ -154,7 +154,7 @@
load_drivers pci $MAP_CURRENT "$LABEL"
fi
- if [ "$DRIVERS" == "" ]; then
+ if [ "$DRIVERS" = "" ]; then
mesg "... no modules for $LABEL"
exit 2
fi
diff -ruN hotplug-2004_01_05.orig/etc/hotplug/usb.agent hotplug-2004_01_05/etc/hotplug/usb.agent
--- hotplug-2004_01_05.orig/etc/hotplug/usb.agent 2003-10-14 01:52:54.000000000 +0200
+++ hotplug-2004_01_05/etc/hotplug/usb.agent 2004-02-04 20:53:28.000000000 +0100
@@ -195,9 +195,9 @@
usb_bDeviceProtocol=$3
IFS="$DEFAULT_IFS"
elif [ -r $SYSFS/$DEVPATH/bDeviceClass ]; then
- usb_bDeviceClass=0x$(cat $SYSFS/$DEVPATH/bDeviceClass)
- usb_bDeviceSubClass=0x$(cat $SYSFS/$DEVPATH/bDeviceSubClass)
- usb_bDeviceProtocol=0x$(cat $SYSFS/$DEVPATH/bDeviceProtocol)
+ usb_bDeviceClass=$(cat $SYSFS/$DEVPATH/bDeviceClass)
+ usb_bDeviceSubClass=$(cat $SYSFS/$DEVPATH/bDeviceSubClass)
+ usb_bDeviceProtocol=$(cat $SYSFS/$DEVPATH/bDeviceProtocol)
else
# out-of-range values
usb_bDeviceClass=1000
@@ -213,9 +213,9 @@
usb_bInterfaceProtocol=$3
IFS="$DEFAULT_IFS"
elif [ -r $SYSFS/$DEVPATH/bInterfaceClass ]; then
- usb_bInterfaceClass=0x$(cat $SYSFS/$DEVPATH/bInterfaceClass)
- usb_bInterfaceSubClass=0x$(cat $SYSFS/$DEVPATH/bInterfaceSubClass)
- usb_bInterfaceProtocol=0x$(cat $SYSFS/$DEVPATH/bInterfaceProtocol)
+ usb_bInterfaceClass=$(cat $SYSFS/$DEVPATH/bInterfaceClass)
+ usb_bInterfaceSubClass=$(cat $SYSFS/$DEVPATH/bInterfaceSubClass)
+ usb_bInterfaceProtocol=$(cat $SYSFS/$DEVPATH/bInterfaceProtocol)
else
# out-of-range values
usb_bInterfaceClass=1000
diff -ruN hotplug-2004_01_05.orig/etc/hotplug/usb.rc hotplug-2004_01_05/etc/hotplug/usb.rc
--- hotplug-2004_01_05.orig/etc/hotplug/usb.rc 2003-09-25 02:09:08.000000000 +0200
+++ hotplug-2004_01_05/etc/hotplug/usb.rc 2004-02-04 20:53:28.000000000 +0100
@@ -21,6 +21,9 @@
PATH=/sbin:/bin:/usr/sbin:/usr/bin
+unset I_WANT_A_BROKEN_PS
+PS_PERSONALITY=linux
+
STATIC_MODULE_LIST=
X11_USBMICE_HACK=false
next prev parent reply other threads:[~2004-03-07 12:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-05 1:05 hotplug patches: fixes and sysfs support Marco d'Itri
2004-02-13 11:01 ` Marco d'Itri
2004-02-21 17:48 ` Marco d'Itri
2004-02-28 14:50 ` Marco d'Itri
2004-03-07 12:42 ` Marco d'Itri [this message]
2004-03-07 12:43 ` hotplug patches: fixes and sysfs support 2/5 Marco d'Itri
2004-03-07 12:44 ` hotplug patches: fixes and sysfs support 3/5 Marco d'Itri
2004-03-07 12:48 ` hotplug patches: fixes and sysfs support 4/5 Marco d'Itri
2004-03-07 12:49 ` hotplug patches: fixes and sysfs support 5/5 Marco d'Itri
2004-03-11 23:24 ` hotplug patches: fixes and sysfs support 1/5 Greg KH
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=20040307124243.GA4291@wonderland.linux.it \
--to=md@linux.it \
--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).