summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/init-ifupdown
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/init-ifupdown')
-rw-r--r--meta/recipes-core/init-ifupdown/init-ifupdown-1.0/interfaces6
-rw-r--r--meta/recipes-core/init-ifupdown/init-ifupdown_1.0.bb21
2 files changed, 15 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
14iface atml0 inet dhcp 14iface atml0 inet dhcp
15 15
16# Wired or wireless interfaces 16# Wired or wireless interfaces including predictable names
17auto eth0 17auto eth0
18iface eth0 inet dhcp 18iface eth0 inet dhcp
19iface eth1 inet dhcp 19iface eth1 inet dhcp
20 20
21# Busybox ifupdown won't process /en* correctly
22auto /en*=eth
23iface 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
23iface usb0 inet static 27iface 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..da594d00b7 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"
2DESCRIPTION = "This package provides high level tools to configure network interfaces" 2DESCRIPTION = "This package provides high level tools to configure network interfaces"
3HOMEPAGE = "http://packages.debian.org/ifupdown" 3HOMEPAGE = "http://packages.debian.org/ifupdown"
4SECTION = "base" 4SECTION = "base"
5LICENSE = "GPLv2" 5LICENSE = "GPL-2.0-only"
6LIC_FILES_CHKSUM = "file://${WORKDIR}/copyright;md5=3dd6192d306f582dee7687da3d8748ab" 6LIC_FILES_CHKSUM = "file://${S}/copyright;md5=3dd6192d306f582dee7687da3d8748ab"
7PR = "r7"
8 7
9inherit update-rc.d 8inherit update-rc.d
10 9
@@ -16,7 +15,7 @@ SRC_URI = "file://copyright \
16 file://interfaces \ 15 file://interfaces \
17 file://nfsroot" 16 file://nfsroot"
18 17
19S = "${WORKDIR}" 18S = "${UNPACKDIR}"
20 19
21do_install () { 20do_install () {
22 install -d ${D}${sysconfdir}/init.d \ 21 install -d ${D}${sysconfdir}/init.d \
@@ -24,18 +23,18 @@ do_install () {
24 ${D}${sysconfdir}/network/if-up.d \ 23 ${D}${sysconfdir}/network/if-up.d \
25 ${D}${sysconfdir}/network/if-down.d \ 24 ${D}${sysconfdir}/network/if-down.d \
26 ${D}${sysconfdir}/network/if-post-down.d 25 ${D}${sysconfdir}/network/if-post-down.d
27 install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/networking 26 install -m 0755 ${S}/init ${D}${sysconfdir}/init.d/networking
28 install -m 0644 ${WORKDIR}/interfaces ${D}${sysconfdir}/network/interfaces 27 install -m 0644 ${S}/interfaces ${D}${sysconfdir}/network/interfaces
29 install -m 0755 ${WORKDIR}/nfsroot ${D}${sysconfdir}/network/if-pre-up.d 28 install -m 0755 ${S}/nfsroot ${D}${sysconfdir}/network/if-pre-up.d
30} 29}
31 30
32do_install_append_qemuall () { 31do_install:append:qemuall () {
33 # Disable network manager on machines that commonly do NFS booting 32 # Disable network manager on machines that commonly do NFS booting
34 touch ${D}${sysconfdir}/network/nm-disabled-eth0 33 touch ${D}${sysconfdir}/network/nm-disabled-eth0
35} 34}
36 35
37PACKAGE_ARCH = "${MACHINE_ARCH}" 36PACKAGE_ARCH = "${MACHINE_ARCH}"
38RDEPENDS_${PN} = "netbase" 37RDEPENDS:${PN} = "netbase"
39RCONFLICTS_${PN} = "netbase (< 1:5.0)" 38RCONFLICTS:${PN} = "netbase (< 1:5.0)"
40 39
41CONFFILES_${PN} = "${sysconfdir}/network/interfaces" 40CONFFILES:${PN} = "${sysconfdir}/network/interfaces"