add first working meta-layer

This commit is contained in:
DanyLE
2024-03-08 10:41:41 +01:00
parent 7a1ce5b08a
commit bdfbfc9669
64 changed files with 96512 additions and 0 deletions

View File

@ -0,0 +1,9 @@
do_install:append() {
# grant all permission to sudo group
sed -i 's/^#\s*\(%sudo\s*ALL=(ALL:ALL)\s*ALL\)/\1/' ${D}/${sysconfdir}/sudoers
# allow sudo group to power off/reboot system without password
cat << EOF >> ${D}/${sysconfdir}/sudoers
## sudo user group is allowed to execute halt and reboot
%sudo ALL=NOPASSWD: /sbin/halt, /sbin/reboot, /sbin/poweroff, /usr/bin/swaylock
EOF
}