- Switch to Sytemd - Add development tools: adroid tool, usbgadget support - Rework on recovery Image
47 lines
1.2 KiB
BlitzBasic
47 lines
1.2 KiB
BlitzBasic
DESCRIPTION = "Auto configuration deployment from media"
|
|
DEPENDS = ""
|
|
RDEPENDS:${PN} = "bash"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
|
|
|
SRC_URI += "file://80_diya \
|
|
file://boot-to-recovery \
|
|
file://diya.pam \
|
|
file://xdg-terminal-exec \
|
|
"
|
|
inherit useradd
|
|
|
|
S = "${UNPACKDIR}"
|
|
|
|
|
|
USERADD_PACKAGES = "${PN}"
|
|
GROUPADD_PACKAGES = "${PN}"
|
|
|
|
USERADD_PARAM:${PN} = "--create-home -u 1000 -d /home/diya -r -s /bin/sh diya"
|
|
|
|
do_install() {
|
|
install -d ${D}/usr/sbin/
|
|
install -d ${D}/etc/default/volatiles
|
|
install -m 0644 ${UNPACKDIR}/80_diya ${D}${sysconfdir}/default/volatiles
|
|
install -m 0755 ${UNPACKDIR}/boot-to-recovery ${D}/usr/sbin/boot-to-recovery
|
|
install -d ${D}/etc/pam.d
|
|
install -m 0644 ${UNPACKDIR}/diya.pam ${D}${sysconfdir}/pam.d/diya
|
|
install -d ${D}${bindir}
|
|
install -m 0755 ${UNPACKDIR}/xdg-terminal-exec ${D}${bindir}
|
|
|
|
install -d ${D}/var/etc
|
|
}
|
|
|
|
FILES:${PN}:append = " ${bindir} \
|
|
${bindir}/boot-to-recovery \
|
|
/usr/sbin \
|
|
/etc \
|
|
/var \
|
|
${bindir}/xdg-terminal-exec \
|
|
/etc/pam.d \
|
|
/etc/default \
|
|
/etc/pam.d/diya \
|
|
/etc/default/volatiles \
|
|
/etc/default/volatiles/80_diya \
|
|
/var/etc \
|
|
" |