diff options
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.agent | 29 |
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 @@ | |||
| 1 | #!/bin/sh -e | ||
| 2 | # | ||
| 3 | # Since ifupdown of Debian is different than one of RedHat. | ||
| 4 | # So we need to fix it | ||
| 5 | |||
| 6 | topdir=$1 | ||
| 7 | dir=$topdir/etc/hotplug | ||
| 8 | test -f $dir/net.agent || exit 1 | ||
| 9 | mv $dir/net.agent $dir/net.agent.orig | ||
| 10 | |||
| 11 | sed -e '/^\*)/i\ | ||
| 12 | unregister)\ | ||
| 13 | # Assume that we want to run ifdown no matter what, \ | ||
| 14 | # because it is not going to remove the data from the \ | ||
| 15 | # ifstate database otherwise.\ | ||
| 16 | if [ -x /sbin/ifdown ]; then\ | ||
| 17 | debug_mesg invoke ifdown $INTERFACE\ | ||
| 18 | exec /sbin/ifdown $INTERFACE\ | ||
| 19 | else\ | ||
| 20 | # mesg "how do I bring interfaces up on this distro?"\ | ||
| 21 | mesg "E: /sbin/ifdown not found. You need to install ifupdown package"\ | ||
| 22 | fi\ | ||
| 23 | mesg $1 $ACTION event not handled\ | ||
| 24 | ;;\ | ||
| 25 | ' $dir/net.agent.orig > $dir/net.agent | ||
| 26 | rm -f $dir/net.agent.orig | ||
| 27 | chmod 755 $dir/net.agent | ||
| 28 | exit 0 | ||
| 29 | |||
