summaryrefslogtreecommitdiff
path: root/packages/hotplug
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2005-01-25 14:02:30 +0000
committerPhil Blundell <philb@gnu.org>2005-01-25 14:02:30 +0000
commit4fc415229063b35bb87c09fc337b80453930c143 (patch)
tree4b9e0622ca22595b4141e708f4629d93f05f2cb1 /packages/hotplug
parent0af9d5b0e4df2fbb4dffc2d81c3817e93d4b6c2b (diff)
Merge bk://oe-devel@oe-devel.bkbits.net/openembedded
into stealth.nexus.co.uk:/home/pb/oe/oe 2005/01/25 00:06:56+00:00 nexus.co.uk!pb apply patch from Paul Eggleton to forward port usbnet-related net.agent changes from Familiar 0.7 2005/01/25 00:05:03+00:00 nexus.co.uk!pb apply patch from Paul Eggleton to restore usbnet behaviour from Familiar 0.7 2005/01/24 23:59:26+00:00 nexus.co.uk!pb add scap to handheld-common BOOTSTRAP_EXTRA_DEPENDS/RRECOMMENDS 2005/01/24 23:57:03+00:00 nexus.co.uk!pb add scap BKrev: 41f65176bucCL0CGF5e7FYURgLdgRw
Diffstat (limited to 'packages/hotplug')
-rw-r--r--packages/hotplug/hotplug-20040920/hotplug-net-agent-usb.patch43
-rw-r--r--packages/hotplug/hotplug_20040920.bb2
2 files changed, 44 insertions, 1 deletions
diff --git a/packages/hotplug/hotplug-20040920/hotplug-net-agent-usb.patch b/packages/hotplug/hotplug-20040920/hotplug-net-agent-usb.patch
index e69de29bb2..e8cc2b3c9a 100644
--- a/packages/hotplug/hotplug-20040920/hotplug-net-agent-usb.patch
+++ b/packages/hotplug/hotplug-20040920/hotplug-net-agent-usb.patch
@@ -0,0 +1,43 @@
+--- net.agent 2005-01-13 21:12:47.143597392 +1300
++++ net.agent 2005-01-13 21:17:57.095477544 +1300
+@@ -41,6 +41,9 @@
+ debug_mesg assuming $INTERFACE is already up
+ exit 0
+ ;;
++ # interfaces that don't go up until attached
++ usbf)
++ ;;
+ # interfaces that are registered then brought up
+ *)
+ # NOTE: network configuration relies on administered state,
+@@ -83,6 +86,13 @@
+ mesg $1 $ACTION event not handled
+ ;;
+
++attach)
++ # ifupdown is dumb and won't bring up an interface that it thinks
++ # might already be configured.
++ /sbin/ifdown $INTERFACE
++ exec /sbin/ifup $INTERFACE
++ ;;
++
+ remove|unregister)
+ case $INTERFACE in
+ # interfaces that are unregistered after being "down" (?)
+@@ -105,6 +115,16 @@
+ mesg $1 $ACTION event not handled
+ ;;
+
++detach)
++ if [ -x /sbin/ifdown ]; then
++ debug_mesg invoke ifdown $INTERFACE
++ exec /sbin/ifdown $INTERFACE
++ else
++ mesg "E: /sbin/ifdown not found. You need to install ifupdown package"
++ fi
++ mesg $1 $ACTION event not handled
++ ;;
++
+ *)
+ debug_mesg NET $ACTION event for $INTERFACE not supported
+ exit 1 ;;
diff --git a/packages/hotplug/hotplug_20040920.bb b/packages/hotplug/hotplug_20040920.bb
index a30c2ed62f..5b796dc27c 100644
--- a/packages/hotplug/hotplug_20040920.bb
+++ b/packages/hotplug/hotplug_20040920.bb
@@ -4,7 +4,7 @@ and use them immediately."
HOMEPAGE = "http://linux-hotplug.sourceforge.net/"
LICENSE = "GPL"
SECTION = "base"
-PR = "r7"
+PR = "r8"
RSUGGESTS = "pciutils usbutils"
SRC_URI = "ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/hotplug-2004_09_20.tar.gz \