From 29d6678fd546377459ef75cf54abeef5b969b5cf Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 27 Aug 2010 15:14:24 +0100 Subject: Major layout change to the packages directory Having one monolithic packages directory makes it hard to find things and is generally overwhelming. This commit splits it into several logical sections roughly based on function, recipes.txt gives more information about the classifications used. The opportunity is also used to switch from "packages" to "recipes" as used in OpenEmbedded as the term "packages" can be confusing to people and has many different meanings. Not all recipes have been classified yet, this is just a first pass at separating things out. Some packages are moved to meta-extras as they're no longer actively used or maintained. Signed-off-by: Richard Purdie --- .../network-suspend-scripts/files/ifupdown | 26 ---------------------- meta/packages/network-suspend-scripts/files/usbnet | 16 ------------- .../network-suspend-scripts/ifupdown | 26 ++++++++++++++++++++++ .../network-suspend-scripts/usbnet | 16 +++++++++++++ 4 files changed, 42 insertions(+), 42 deletions(-) delete mode 100644 meta/packages/network-suspend-scripts/files/ifupdown delete mode 100644 meta/packages/network-suspend-scripts/files/usbnet create mode 100644 meta/packages/network-suspend-scripts/network-suspend-scripts/ifupdown create mode 100644 meta/packages/network-suspend-scripts/network-suspend-scripts/usbnet (limited to 'meta/packages/network-suspend-scripts') diff --git a/meta/packages/network-suspend-scripts/files/ifupdown b/meta/packages/network-suspend-scripts/files/ifupdown deleted file mode 100644 index d458da686..000000000 --- a/meta/packages/network-suspend-scripts/files/ifupdown +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh -# Unloads/loads all interface that are up at time of suspend - -if [ "$1" = suspend ]; then - rm -f /var/run/ifstate-suspend - rm -f /var/run/ifstate-old - cp /var/run/ifstate /var/run/ifstate-old - cat /var/run/ifstate-old | ( - IFS="=" - while read IFACE LOGICAL; do - ifdown $IFACE - echo "$IFACE=$LOGICAL" >>/var/run/ifstate-suspend - done - rm -f /var/run/ifstate-old - ) -elif [ "$1" = resume ] && [ "$2" != standby ] && [ -f /var/run/ifstate-suspend ]; then - cat /var/run/ifstate-suspend | ( - while read LINE; do - ifup $LINE - done - ) - rm -f /var/run/ifstate-suspend -fi - -: exit 0 - diff --git a/meta/packages/network-suspend-scripts/files/usbnet b/meta/packages/network-suspend-scripts/files/usbnet deleted file mode 100644 index 3731f6339..000000000 --- a/meta/packages/network-suspend-scripts/files/usbnet +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -# Unloads/loads usb-eth so it always works - -. /etc/default/usbd - -if [ "$1" = suspend ]; then - rmmod usb-eth - rmmod sa1100usb_core -elif [ "$1" = resume ] && [ "$2" != standby ]; then - modprobe usb-eth - modprobe -r $usbdmodule - modprobe $usbdmodule -fi - -: exit 0 - diff --git a/meta/packages/network-suspend-scripts/network-suspend-scripts/ifupdown b/meta/packages/network-suspend-scripts/network-suspend-scripts/ifupdown new file mode 100644 index 000000000..d458da686 --- /dev/null +++ b/meta/packages/network-suspend-scripts/network-suspend-scripts/ifupdown @@ -0,0 +1,26 @@ +#!/bin/sh +# Unloads/loads all interface that are up at time of suspend + +if [ "$1" = suspend ]; then + rm -f /var/run/ifstate-suspend + rm -f /var/run/ifstate-old + cp /var/run/ifstate /var/run/ifstate-old + cat /var/run/ifstate-old | ( + IFS="=" + while read IFACE LOGICAL; do + ifdown $IFACE + echo "$IFACE=$LOGICAL" >>/var/run/ifstate-suspend + done + rm -f /var/run/ifstate-old + ) +elif [ "$1" = resume ] && [ "$2" != standby ] && [ -f /var/run/ifstate-suspend ]; then + cat /var/run/ifstate-suspend | ( + while read LINE; do + ifup $LINE + done + ) + rm -f /var/run/ifstate-suspend +fi + +: exit 0 + diff --git a/meta/packages/network-suspend-scripts/network-suspend-scripts/usbnet b/meta/packages/network-suspend-scripts/network-suspend-scripts/usbnet new file mode 100644 index 000000000..3731f6339 --- /dev/null +++ b/meta/packages/network-suspend-scripts/network-suspend-scripts/usbnet @@ -0,0 +1,16 @@ +#!/bin/sh +# Unloads/loads usb-eth so it always works + +. /etc/default/usbd + +if [ "$1" = suspend ]; then + rmmod usb-eth + rmmod sa1100usb_core +elif [ "$1" = resume ] && [ "$2" != standby ]; then + modprobe usb-eth + modprobe -r $usbdmodule + modprobe $usbdmodule +fi + +: exit 0 + -- cgit v1.2.3