|
#!/bin/sh
|
|
# Reference: https://bgstack15.wordpress.com/2019/09/01/devuan-with-lightdm-and-xfce-will-not-let-user-reboot-or-shutdown-from-user-session/
|
|
# Startdate: 2019-08-11
|
|
# History:
|
|
# 2020-04-30 updated
|
|
# only for devuan ceres
|
|
unset YESSTRING
|
|
echo " ${@} " | grep -qE -e " -y " && export YESSTRING="-y"
|
|
|
|
sudo apt-get install "${YESSTRING}" --no-install-recommends policykit-1 libpam-elogind lightdm lightdm-gtk-greeter
|
|
sudo sed -i -r -e '/session\s+optional\s+pam_systemd\.so/s/systemd/elogind/;' /etc/pam.d/lightdm-greeter
|