From 85a7909e37d71d9bbb91bf398ed5f847b739f533 Mon Sep 17 00:00:00 2001 From: hayao Date: Thu, 8 Oct 2020 15:30:20 +0900 Subject: [PATCH] [add] : addm autologin --- .../airootfs.any/etc/sddm.conf.d/autologin.conf | 3 +++ .../airootfs.any/root/customize_airootfs_plasma.sh | 24 +++++++++++++++------- 2 files changed, 20 insertions(+), 7 deletions(-) create mode 100644 channels/plasma/airootfs.any/etc/sddm.conf.d/autologin.conf diff --git a/channels/plasma/airootfs.any/etc/sddm.conf.d/autologin.conf b/channels/plasma/airootfs.any/etc/sddm.conf.d/autologin.conf new file mode 100644 index 00000000..04b53534 --- /dev/null +++ b/channels/plasma/airootfs.any/etc/sddm.conf.d/autologin.conf @@ -0,0 +1,3 @@ +[Autologin] +User=%USERNAME% +Session=plasma.desktop diff --git a/channels/plasma/airootfs.any/root/customize_airootfs_plasma.sh b/channels/plasma/airootfs.any/root/customize_airootfs_plasma.sh index 18ba837a..aab49f67 100755 --- a/channels/plasma/airootfs.any/root/customize_airootfs_plasma.sh +++ b/channels/plasma/airootfs.any/root/customize_airootfs_plasma.sh @@ -89,13 +89,23 @@ if [[ "${arch}" = "x86_64" ]]; then fi -# Disable services. -# To disable start up of sddm. -# If it is enable, Users have to enter password. -#systemctl disable sddm -#if [[ ${boot_splash} = true ]]; then -# systemctl disable sddm-plymouth.service -#fi +# Bluetooth +rfkill unblock all +systemctl enable bluetooth + +# Update system datebase +dconf update + +# Enable SDDM to auto login in live session +if [[ "${boot_splash}" = true ]]; then + systemctl enable sddm-plymouth.service + systemctl disable sddm.service +else + systemctl enable sddm.service +fi + +echo -e "\nremove /etc/sddm.conf.d/autologin.conf" >> "/usr/share/calamares/final-process" +sed -i "s|%USERNAME%|${username}|g" "/etc/sddm.conf.d/autologin.conf" # ntp -- 2.11.0