avs_mtk_voice/meta/meta-openembedded/meta-oe/recipes-extended/polkit/polkit-group-rule.inc

11 lines
330 B
PHP
Raw Normal View History

2022-05-13 08:02:31 +00:00
# polkit must prepare polkid group
DEPENDS += "polkit"
inherit useradd
do_install_prepend() {
install -m 700 -d ${D}${sysconfdir}/polkit-1/rules.d
chown polkitd:polkitd ${D}${sysconfdir}/polkit-1/rules.d
}
USERADD_PARAM_${PN}_prepend = "--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 polkitd;"