aboutsummaryrefslogtreecommitdiff
path: root/meta-linaro/recipes-core/auto-serial-console/auto-serial-console_0.1.bb
blob: ec4f008f5eae9161bb47fbe071fc67e4361c7e10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
SUMMARY = "Auto Serial Console and Auto Login scripts"
DESCRIPTION = "Scripts to auto login with root and call the console tty from the kernel cmd line"
SECTION = "base"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "\
	file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
	file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420 \
"

PR = "r2"

inherit update-rc.d

SRC_URI = "\
	file://autogetty \
	file://auto-root-login \
	file://auto-getty \
	file://auto-console-login \
	file://auto-serial-console \
"

PACKAGES =+ "auto-console-login"
RDEPENDS_${PN} = "auto-console-login"

FILES_auto-console-login = "\
	${bindir}/auto-root-login \
	${sysconfdir}/init.d/auto-console-login \
"

S = "${WORKDIR}"

INITSCRIPT_PACKAGES = "${PN} auto-console-login"
INITSCRIPT_NAME_auto-serial-console = "auto-serial-console"
INITSCRIPT_NAME_auto-console-login = "auto-console-login"
INITSCRIPT_PARAMS = "start 99 5 ."

do_install () {
	install -m 0755 -d ${D}${sysconfdir}/default
	install -m 0644 ${WORKDIR}/autogetty ${D}${sysconfdir}/default/autogetty

	install -m 0755 -d ${D}${sysconfdir}/init.d
	install -m 0755 ${WORKDIR}/auto-console-login ${D}${sysconfdir}/init.d/auto-console-login
	install -m 0755 ${WORKDIR}/auto-serial-console ${D}${sysconfdir}/init.d/auto-serial-console

	install -m 0755 -d ${D}${bindir}
	install -m 0755 ${WORKDIR}/auto-root-login ${D}${bindir}/auto-root-login
	install -m 0755 ${WORKDIR}/auto-getty ${D}${bindir}/auto-getty
}