1
0
mirror of https://github.com/lxsang/meta-rpi-diya.git synced 2025-04-30 11:26:45 +02:00

Compare commits

..

2 Commits

Author SHA1 Message Date
DanyLE
78a6473a6f add wlopm 2023-07-26 15:42:12 +02:00
DanyLE
07a057d7b3 add swaylock to sudo 2023-07-26 15:30:52 +02:00
2 changed files with 21 additions and 1 deletions

View File

@ -4,6 +4,6 @@ do_install:append() {
# allow sudo group to power off/reboot system without password # allow sudo group to power off/reboot system without password
cat << EOF >> ${D}/${sysconfdir}/sudoers cat << EOF >> ${D}/${sysconfdir}/sudoers
## sudo user group is allowed to execute halt and reboot ## sudo user group is allowed to execute halt and reboot
%sudo ALL=NOPASSWD: /sbin/halt, /sbin/reboot, /sbin/poweroff %sudo ALL=NOPASSWD: /sbin/halt, /sbin/reboot, /sbin/poweroff, /usr/bin/swaylock
EOF EOF
} }

View File

@ -0,0 +1,20 @@
DESCRIPTION = "wlopm"
LICENSE = ""GPL-3.0-only"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-3.0-only;md5=c79ff39f19dfec6d293b95dea7b07891"
SRCREV = "${AUTOREV}"
SRC_URI = "https://git.iohub.dev/dany/wlopm.git;branch=master;"
S="${WORKDIR}/git"
do_compile () {
oe_runmake -C make/linux
}
do_install() {
oe_runmake install DESTDIR='${D}'
}