summaryrefslogtreecommitdiffstats
path: root/meta/packages/linux-hotplug/linux-hotplug-20040920/hotplug-net-agent-usb.patch
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-07-21 10:10:31 +0000
committerRichard Purdie <richard@openedhand.com>2006-07-21 10:10:31 +0000
commitb2f192faabe412adce79534e22efe9fb69ee40e2 (patch)
tree7076c49d4286f8a1733650bd8fbc7161af200d57 /meta/packages/linux-hotplug/linux-hotplug-20040920/hotplug-net-agent-usb.patch
parent2cf0eadf9f730027833af802d7e6c90b44248f80 (diff)
downloadpoky-b2f192faabe412adce79534e22efe9fb69ee40e2.tar.gz
Rename /openembedded/ -> /meta/
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@530 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/linux-hotplug/linux-hotplug-20040920/hotplug-net-agent-usb.patch')
-rw-r--r--meta/packages/linux-hotplug/linux-hotplug-20040920/hotplug-net-agent-usb.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/meta/packages/linux-hotplug/linux-hotplug-20040920/hotplug-net-agent-usb.patch b/meta/packages/linux-hotplug/linux-hotplug-20040920/hotplug-net-agent-usb.patch
new file mode 100644
index 0000000000..a64fc50d2b
--- /dev/null
+++ b/meta/packages/linux-hotplug/linux-hotplug-20040920/hotplug-net-agent-usb.patch
@@ -0,0 +1,43 @@
1--- hotplug/etc/hotplug/net.agent 2005-01-13 21:12:47.143597392 +1300
2+++ hotplug/etc/hotplug/net.agent 2005-01-13 21:17:57.095477544 +1300
3@@ -41,6 +41,9 @@
4 debug_mesg assuming $INTERFACE is already up
5 exit 0
6 ;;
7+ # interfaces that don't go up until attached
8+ usbf)
9+ ;;
10 # interfaces that are registered then brought up
11 *)
12 # NOTE: network configuration relies on administered state,
13@@ -83,6 +86,13 @@
14 mesg $1 $ACTION event not handled
15 ;;
16
17+attach)
18+ # ifupdown is dumb and won't bring up an interface that it thinks
19+ # might already be configured.
20+ /sbin/ifdown $INTERFACE
21+ exec /sbin/ifup $INTERFACE
22+ ;;
23+
24 remove|unregister)
25 case $INTERFACE in
26 # interfaces that are unregistered after being "down" (?)
27@@ -105,6 +115,16 @@
28 mesg $1 $ACTION event not handled
29 ;;
30
31+detach)
32+ if [ -x /sbin/ifdown ]; then
33+ debug_mesg invoke ifdown $INTERFACE
34+ exec /sbin/ifdown $INTERFACE
35+ else
36+ mesg "E: /sbin/ifdown not found. You need to install ifupdown package"
37+ fi
38+ mesg $1 $ACTION event not handled
39+ ;;
40+
41 *)
42 debug_mesg NET $ACTION event for $INTERFACE not supported
43 exit 1 ;;