summaryrefslogtreecommitdiffstats
path: root/meta-agl-profile-graphical/recipes-config/agl-login-manager/agl-login-manager_0.1.bb
blob: cd6dc67923bf4a2d56f812f8db28f0c74fcf4c01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
SUMMARY = "AGL Login manager"

LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"

inherit agl-graphical

LOGIN_USER ??="1001 1002"

RDEPENDS_${PN} += "af-main"

do_install_append() {

    install -d ${D}${systemd_system_unitdir}/multi-user.target.wants/

    for AGL_USER in ${LOGIN_USER};do
        ln -s ../afm-user-session@.service ${D}${systemd_system_unitdir}/multi-user.target.wants/afm-user-session@${AGL_USER}.service
    done
}

FILES_${PN} += "${systemd_system_unitdir}"