diff options
Diffstat (limited to 'meta/packages/linux-hotplug/linux-hotplug-20040920/usbrc-busybox.patch')
-rw-r--r-- | meta/packages/linux-hotplug/linux-hotplug-20040920/usbrc-busybox.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/packages/linux-hotplug/linux-hotplug-20040920/usbrc-busybox.patch b/meta/packages/linux-hotplug/linux-hotplug-20040920/usbrc-busybox.patch new file mode 100644 index 0000000000..35f43dc52b --- /dev/null +++ b/meta/packages/linux-hotplug/linux-hotplug-20040920/usbrc-busybox.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | --- hotplug/etc/hotplug/usb.rc.old 2005-05-25 15:50:11.000000000 +0100 | ||
2 | +++ hotplug/etc/hotplug/usb.rc 2005-05-25 15:50:59.000000000 +0100 | ||
3 | @@ -95,8 +95,8 @@ | ||
4 | PRODUCT="$(cat $devlink/../idVendor)/$(cat $devlink/../idProduct)/$(cat $devlink/../bcdDevice)" | ||
5 | if [ -f $devlink/../../devnum ] | ||
6 | then | ||
7 | - devbus=$( ( echo -n 000 ; cat $devlink/../../devnum ) | grep -o ...\$ ) | ||
8 | - devdev=$( ( echo -n 000 ; cat $devlink/../devnum ) | grep -o ...\$ ) | ||
9 | + devbus=$( ( echo -n 000 ; cat $devlink/../../devnum ) | sed 's/.*\(...\)$/\1/' ) | ||
10 | + devdev=$( ( echo -n 000 ; cat $devlink/../devnum ) | sed 's/.*\(...\)$/\1/' ) | ||
11 | DEVICE="/proc/bus/usb/$devbus/$devdev" | ||
12 | else | ||
13 | DEVICE= | ||