diff options
Diffstat (limited to 'meta/recipes-core/init-ifupdown')
-rw-r--r-- | meta/recipes-core/init-ifupdown/init-ifupdown-1.0/interfaces | 6 | ||||
-rw-r--r-- | meta/recipes-core/init-ifupdown/init-ifupdown_1.0.bb | 22 |
2 files changed, 16 insertions, 12 deletions
diff --git a/meta/recipes-core/init-ifupdown/init-ifupdown-1.0/interfaces b/meta/recipes-core/init-ifupdown/init-ifupdown-1.0/interfaces index 0acf4cf441..3d0f0c6768 100644 --- a/meta/recipes-core/init-ifupdown/init-ifupdown-1.0/interfaces +++ b/meta/recipes-core/init-ifupdown/init-ifupdown-1.0/interfaces | |||
@@ -13,11 +13,15 @@ iface wlan0 inet dhcp | |||
13 | 13 | ||
14 | iface atml0 inet dhcp | 14 | iface atml0 inet dhcp |
15 | 15 | ||
16 | # Wired or wireless interfaces | 16 | # Wired or wireless interfaces including predictable names |
17 | auto eth0 | 17 | auto eth0 |
18 | iface eth0 inet dhcp | 18 | iface eth0 inet dhcp |
19 | iface eth1 inet dhcp | 19 | iface eth1 inet dhcp |
20 | 20 | ||
21 | # Busybox ifupdown won't process /en* correctly | ||
22 | auto /en*=eth | ||
23 | iface eth inet dhcp | ||
24 | |||
21 | # Ethernet/RNDIS gadget (g_ether) | 25 | # Ethernet/RNDIS gadget (g_ether) |
22 | # ... or on host side, usbnet and random hwaddr | 26 | # ... or on host side, usbnet and random hwaddr |
23 | iface usb0 inet static | 27 | iface usb0 inet static |
diff --git a/meta/recipes-core/init-ifupdown/init-ifupdown_1.0.bb b/meta/recipes-core/init-ifupdown/init-ifupdown_1.0.bb index b6fc8a4d41..ddf9d1b311 100644 --- a/meta/recipes-core/init-ifupdown/init-ifupdown_1.0.bb +++ b/meta/recipes-core/init-ifupdown/init-ifupdown_1.0.bb | |||
@@ -2,9 +2,8 @@ SUMMARY = "Basic TCP/IP networking init scripts and configuration files" | |||
2 | DESCRIPTION = "This package provides high level tools to configure network interfaces" | 2 | DESCRIPTION = "This package provides high level tools to configure network interfaces" |
3 | HOMEPAGE = "http://packages.debian.org/ifupdown" | 3 | HOMEPAGE = "http://packages.debian.org/ifupdown" |
4 | SECTION = "base" | 4 | SECTION = "base" |
5 | LICENSE = "GPLv2" | 5 | LICENSE = "GPL-2.0-only" |
6 | LIC_FILES_CHKSUM = "file://${WORKDIR}/copyright;md5=3dd6192d306f582dee7687da3d8748ab" | 6 | LIC_FILES_CHKSUM = "file://${S}/copyright;md5=3dd6192d306f582dee7687da3d8748ab" |
7 | PR = "r7" | ||
8 | 7 | ||
9 | inherit update-rc.d | 8 | inherit update-rc.d |
10 | 9 | ||
@@ -16,7 +15,8 @@ SRC_URI = "file://copyright \ | |||
16 | file://interfaces \ | 15 | file://interfaces \ |
17 | file://nfsroot" | 16 | file://nfsroot" |
18 | 17 | ||
19 | S = "${WORKDIR}" | 18 | S = "${WORKDIR}/sources" |
19 | UNPACKDIR = "${S}" | ||
20 | 20 | ||
21 | do_install () { | 21 | do_install () { |
22 | install -d ${D}${sysconfdir}/init.d \ | 22 | install -d ${D}${sysconfdir}/init.d \ |
@@ -24,18 +24,18 @@ do_install () { | |||
24 | ${D}${sysconfdir}/network/if-up.d \ | 24 | ${D}${sysconfdir}/network/if-up.d \ |
25 | ${D}${sysconfdir}/network/if-down.d \ | 25 | ${D}${sysconfdir}/network/if-down.d \ |
26 | ${D}${sysconfdir}/network/if-post-down.d | 26 | ${D}${sysconfdir}/network/if-post-down.d |
27 | install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/networking | 27 | install -m 0755 ${S}/init ${D}${sysconfdir}/init.d/networking |
28 | install -m 0644 ${WORKDIR}/interfaces ${D}${sysconfdir}/network/interfaces | 28 | install -m 0644 ${S}/interfaces ${D}${sysconfdir}/network/interfaces |
29 | install -m 0755 ${WORKDIR}/nfsroot ${D}${sysconfdir}/network/if-pre-up.d | 29 | install -m 0755 ${S}/nfsroot ${D}${sysconfdir}/network/if-pre-up.d |
30 | } | 30 | } |
31 | 31 | ||
32 | do_install_append_qemuall () { | 32 | do_install:append:qemuall () { |
33 | # Disable network manager on machines that commonly do NFS booting | 33 | # Disable network manager on machines that commonly do NFS booting |
34 | touch ${D}${sysconfdir}/network/nm-disabled-eth0 | 34 | touch ${D}${sysconfdir}/network/nm-disabled-eth0 |
35 | } | 35 | } |
36 | 36 | ||
37 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 37 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
38 | RDEPENDS_${PN} = "netbase" | 38 | RDEPENDS:${PN} = "netbase" |
39 | RCONFLICTS_${PN} = "netbase (< 1:5.0)" | 39 | RCONFLICTS:${PN} = "netbase (< 1:5.0)" |
40 | 40 | ||
41 | CONFFILES_${PN} = "${sysconfdir}/network/interfaces" | 41 | CONFFILES:${PN} = "${sysconfdir}/network/interfaces" |