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.bb22
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
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..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"
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,8 @@ SRC_URI = "file://copyright \
16 file://interfaces \ 15 file://interfaces \
17 file://nfsroot" 16 file://nfsroot"
18 17
19S = "${WORKDIR}" 18S = "${WORKDIR}/sources"
19UNPACKDIR = "${S}"
20 20
21do_install () { 21do_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
32do_install_append_qemuall () { 32do_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
37PACKAGE_ARCH = "${MACHINE_ARCH}" 37PACKAGE_ARCH = "${MACHINE_ARCH}"
38RDEPENDS_${PN} = "netbase" 38RDEPENDS:${PN} = "netbase"
39RCONFLICTS_${PN} = "netbase (< 1:5.0)" 39RCONFLICTS:${PN} = "netbase (< 1:5.0)"
40 40
41CONFFILES_${PN} = "${sysconfdir}/network/interfaces" 41CONFFILES:${PN} = "${sysconfdir}/network/interfaces"