OSDN Git Service

[add] : addm autologin
authorhayao <shun819.mail@gmail.com>
Thu, 8 Oct 2020 06:30:20 +0000 (15:30 +0900)
committerhayao <shun819.mail@gmail.com>
Thu, 8 Oct 2020 06:30:20 +0000 (15:30 +0900)
channels/plasma/airootfs.any/etc/sddm.conf.d/autologin.conf [new file with mode: 0644]
channels/plasma/airootfs.any/root/customize_airootfs_plasma.sh

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 (file)
index 0000000..04b5353
--- /dev/null
@@ -0,0 +1,3 @@
+[Autologin]
+User=%USERNAME%
+Session=plasma.desktop
index 18ba837..aab49f6 100755 (executable)
@@ -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