diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-27 15:14:24 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-27 15:29:45 +0100 |
commit | 29d6678fd546377459ef75cf54abeef5b969b5cf (patch) | |
tree | 8edd65790e37a00d01c3f203f773fe4b5012db18 /meta/packages/busybox/files/simple.script | |
parent | da49de6885ee1bc424e70bc02f21f6ab920efb55 (diff) | |
download | openembedded-core-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.gz openembedded-core-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.bz2 openembedded-core-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.xz openembedded-core-29d6678fd546377459ef75cf54abeef5b969b5cf.zip |
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 <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/packages/busybox/files/simple.script')
-rw-r--r-- | meta/packages/busybox/files/simple.script | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/meta/packages/busybox/files/simple.script b/meta/packages/busybox/files/simple.script deleted file mode 100644 index 5cc21b9de..000000000 --- a/meta/packages/busybox/files/simple.script +++ /dev/null @@ -1,72 +0,0 @@ -#!/bin/sh - -# udhcpc script edited by Tim Riker <Tim@Rikers.org> - -[ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1 - -RESOLV_CONF="/etc/resolv.conf" -[ -n "$broadcast" ] && BROADCAST="broadcast $broadcast" -[ -n "$subnet" ] && NETMASK="netmask $subnet" - -# return 0 if root is mounted on a network filesystem -root_is_nfs() { - grep -qe '^/dev/root.*\(nfs\|smbfs\|ncp\|coda\) .*' /proc/mounts -} - -have_bin_ip=0 -if [ -x /bin/ip ]; then - have_bin_ip=1 -fi - -case "$1" in - deconfig) - if ! root_is_nfs ; then - if [ $have_bin_ip -eq 1 ]; then - ip addr flush dev $interface - ip link set dev $interface up - else - /sbin/ifconfig $interface 0.0.0.0 - fi - fi - ;; - - renew|bound) - if [ $have_bin_ip -eq 1 ]; then - ip addr add dev $interface local $ip/$mask $BROADCAST - else - /sbin/ifconfig $interface $ip $BROADCAST $NETMASK - fi - - if [ -n "$router" ] ; then - if ! root_is_nfs ; then - if [ $have_bin_ip -eq 1 ]; then - while ip route del default 2>/dev/null ; do - : - done - else - while route del default gw 0.0.0.0 dev $interface 2>/dev/null ; do - : - done - fi - fi - - metric=0 - for i in $router ; do - if [ $have_bin_ip -eq 1 ]; then - ip route add default via $i metric $((metric++)) - else - route add default gw $i dev $interface metric $((metric++)) 2>/dev/null - fi - done - fi - - echo -n > $RESOLV_CONF - [ -n "$domain" ] && echo search $domain >> $RESOLV_CONF - for i in $dns ; do - echo adding dns $i - echo nameserver $i >> $RESOLV_CONF - done - ;; -esac - -exit 0 |