mirror of
https://github.com/lxsang/meta-rpi-diya.git
synced 2024-12-26 02:38:22 +01:00
add swaylock to sudo
This commit is contained in:
parent
a44cf639b6
commit
07a057d7b3
@ -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
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user