summaryrefslogtreecommitdiff
path: root/meta/packages/linux-hotplug/linux-hotplug-20040920/fix-net.agent
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-06-16 11:07:51 +0000
committerRichard Purdie <richard@openedhand.com>2008-06-16 11:07:51 +0000
commit322393c27f305b41f1911e64158676a9468de828 (patch)
treecfd7b0cb643f5af495e87c639dcbd08668d4430f /meta/packages/linux-hotplug/linux-hotplug-20040920/fix-net.agent
parent5b286d94930d59a2946acd96811c420783c64685 (diff)
downloadopenembedded-core-322393c27f305b41f1911e64158676a9468de828.tar.gz
openembedded-core-322393c27f305b41f1911e64158676a9468de828.tar.bz2
openembedded-core-322393c27f305b41f1911e64158676a9468de828.zip
linux-hotplug: Drop, we don't support 2.4 kernels
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4670 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/linux-hotplug/linux-hotplug-20040920/fix-net.agent')
-rw-r--r--meta/packages/linux-hotplug/linux-hotplug-20040920/fix-net.agent29
1 files changed, 0 insertions, 29 deletions
diff --git a/meta/packages/linux-hotplug/linux-hotplug-20040920/fix-net.agent b/meta/packages/linux-hotplug/linux-hotplug-20040920/fix-net.agent
deleted file mode 100644
index 3bc0935018..0000000000
--- a/meta/packages/linux-hotplug/linux-hotplug-20040920/fix-net.agent
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/sh -e
-#
-# Since ifupdown of Debian is different than one of RedHat.
-# So we need to fix it
-
-topdir=$1
-dir=$topdir/etc/hotplug
-test -f $dir/net.agent || exit 1
-mv $dir/net.agent $dir/net.agent.orig
-
-sed -e '/^\*)/i\
-unregister)\
- # Assume that we want to run ifdown no matter what, \
- # because it is not going to remove the data from the \
- # ifstate database otherwise.\
- if [ -x /sbin/ifdown ]; then\
- debug_mesg invoke ifdown $INTERFACE\
- exec /sbin/ifdown $INTERFACE\
- else\
- # mesg "how do I bring interfaces up on this distro?"\
- mesg "E: /sbin/ifdown not found. You need to install ifupdown package"\
- fi\
- mesg $1 $ACTION event not handled\
- ;;\
-' $dir/net.agent.orig > $dir/net.agent
-rm -f $dir/net.agent.orig
-chmod 755 $dir/net.agent
-exit 0
-