diff options
Diffstat (limited to 'openembedded/packages/sysvinit/sysvinit_2.86.bb')
-rw-r--r-- | openembedded/packages/sysvinit/sysvinit_2.86.bb | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/openembedded/packages/sysvinit/sysvinit_2.86.bb b/openembedded/packages/sysvinit/sysvinit_2.86.bb index 0a8f78efcc..e2124c7fe9 100644 --- a/openembedded/packages/sysvinit/sysvinit_2.86.bb +++ b/openembedded/packages/sysvinit/sysvinit_2.86.bb | |||
@@ -3,11 +3,10 @@ SECTION = "base" | |||
3 | LICENSE = "GPL" | 3 | LICENSE = "GPL" |
4 | MAINTAINER = "Chris Larson <kergoth@handhelds.org>" | 4 | MAINTAINER = "Chris Larson <kergoth@handhelds.org>" |
5 | HOMEPAGE = "http://freshmeat.net/projects/sysvinit/" | 5 | HOMEPAGE = "http://freshmeat.net/projects/sysvinit/" |
6 | PR = "r19" | 6 | PR = "r24" |
7 | 7 | ||
8 | # USE_VT and SERIAL_CONSOLE are generally defined by the MACHINE .conf. | 8 | # USE_VT and SERIAL_CONSOLE are generally defined by the MACHINE .conf. |
9 | # Set PACKAGE_ARCH appropriately. | 9 | # Set PACKAGE_ARCH appropriately. |
10 | PACKAGE_ARCH = "all" | ||
11 | PACKAGE_ARCH_${PN}-inittab = "${MACHINE_ARCH}" | 10 | PACKAGE_ARCH_${PN}-inittab = "${MACHINE_ARCH}" |
12 | 11 | ||
13 | RDEPENDS_${PN} = "${PN}-inittab" | 12 | RDEPENDS_${PN} = "${PN}-inittab" |
@@ -18,9 +17,9 @@ FILES_${PN}-inittab = "${sysconfdir}/inittab" | |||
18 | CONFFILES_${PN}-inittab = "${sysconfdir}/inittab" | 17 | CONFFILES_${PN}-inittab = "${sysconfdir}/inittab" |
19 | 18 | ||
20 | USE_VT ?= "1" | 19 | USE_VT ?= "1" |
20 | SYSVINIT_ENABLED_GETTYS ?= "1" | ||
21 | 21 | ||
22 | SRC_URI = "ftp://ftp.cistron.nl/pub/people/miquels/sysvinit/sysvinit-2.85.tar.gz \ | 22 | SRC_URI = "ftp://ftp.cistron.nl/pub/people/miquels/sysvinit/sysvinit-${PV}.tar.gz \ |
23 | file://sysvinit-2.86.patch;patch=1 \ | ||
24 | file://install.patch;patch=1 \ | 23 | file://install.patch;patch=1 \ |
25 | file://need \ | 24 | file://need \ |
26 | file://provide \ | 25 | file://provide \ |
@@ -29,7 +28,8 @@ SRC_URI = "ftp://ftp.cistron.nl/pub/people/miquels/sysvinit/sysvinit-2.85.tar.gz | |||
29 | file://rc \ | 28 | file://rc \ |
30 | file://rcS \ | 29 | file://rcS \ |
31 | file://bootlogd.init" | 30 | file://bootlogd.init" |
32 | S = "${WORKDIR}/sysvinit-2.85" | 31 | |
32 | S = "${WORKDIR}/sysvinit-${PV}" | ||
33 | B = "${S}/src" | 33 | B = "${S}/src" |
34 | 34 | ||
35 | inherit update-alternatives | 35 | inherit update-alternatives |
@@ -73,11 +73,14 @@ do_install () { | |||
73 | # Format: | 73 | # Format: |
74 | # <id>:<runlevels>:<action>:<process> | 74 | # <id>:<runlevels>:<action>:<process> |
75 | # | 75 | # |
76 | 1:2345:respawn:${base_sbindir}/getty 38400 tty1 | 76 | |
77 | # 2:23:respawn:${base_sbindir}/getty 38400 tty2 | ||
78 | # 3:23:respawn:${base_sbindir}/getty 38400 tty3 | ||
79 | # 4:23:respawn:${base_sbindir}/getty 38400 tty4 | ||
80 | EOF | 77 | EOF |
78 | |||
79 | for n in ${SYSVINIT_ENABLED_GETTYS} | ||
80 | do | ||
81 | echo "$n:2345:respawn:${base_sbindir}/getty 38400 tty$n" >> ${D}${sysconfdir}/inittab | ||
82 | done | ||
83 | echo "" >> ${D}${sysconfdir}/inittab | ||
81 | fi | 84 | fi |
82 | install -m 0644 ${WORKDIR}/rcS-default ${D}${sysconfdir}/default/rcS | 85 | install -m 0644 ${WORKDIR}/rcS-default ${D}${sysconfdir}/default/rcS |
83 | install -m 0755 ${WORKDIR}/rc ${D}${sysconfdir}/init.d | 86 | install -m 0755 ${WORKDIR}/rc ${D}${sysconfdir}/init.d |