diff options
author | Matthias Hentges <oe@hentges.net> | 2007-03-17 16:42:21 +0000 |
---|---|---|
committer | Matthias Hentges <oe@hentges.net> | 2007-03-17 16:42:21 +0000 |
commit | d4b48e8647c6e176d2a98b250f2cd2dfd8a0d486 (patch) | |
tree | ef7f4a4a4d3a31b53698d2a504857ec4815404ad /packages/netbase/netbase_4.21.bb | |
parent | 53996ee420659702ac64f441c85fb3c62da06bbc (diff) |
netbase: Add support for custom if-*.d directories. Also fix failing dhcp mode on SlugOS due to slow auto-negotiation (dhcp fix courtesy mwester & NAiL, thanks!)
Diffstat (limited to 'packages/netbase/netbase_4.21.bb')
-rw-r--r-- | packages/netbase/netbase_4.21.bb | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/packages/netbase/netbase_4.21.bb b/packages/netbase/netbase_4.21.bb index 265da46360..f97d8986aa 100644 --- a/packages/netbase/netbase_4.21.bb +++ b/packages/netbase/netbase_4.21.bb @@ -2,7 +2,7 @@ DESCRIPTION = "This package provides the necessary \ infrastructure for basic TCP/IP based networking." SECTION = "base" LICENSE = "GPL" -PR = "r14" +PR = "r15" inherit update-rc.d @@ -18,7 +18,11 @@ SRC_URI = "${DEBIAN_MIRROR}/main/n/netbase/netbase_${PV}.tar.gz \ file://options \ file://init \ file://hosts \ - file://interfaces" + file://interfaces \ + file://if-pre-up.d \ + file://if-up.d \ + file://if-down.d \ + file://if-post-down.d" do_install () { install -d ${D}${sysconfdir}/init.d \ @@ -28,6 +32,15 @@ do_install () { ${D}${sysconfdir}/network/if-up.d \ ${D}${sysconfdir}/network/if-down.d \ ${D}${sysconfdir}/network/if-post-down.d + + for dir in if-pre-up.d if-up.d if-down.d if-post-down.d + do + for script in `ls -1 "${WORKDIR}/${dir}"` + do + install -m 0755 "${WORKDIR}/${dir}/${script}" "${D}${sysconfdir}/network/${dir}" + done + done + install -m 0644 ${WORKDIR}/options ${D}${sysconfdir}/network/options install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/networking install -m 0644 ${WORKDIR}/hosts ${D}${sysconfdir}/hosts |