calamares-settings-ubuntu/lubuntu/oem/calamares-finish-oem

22 lines
455 B
Plaintext
Raw Normal View History

#!/bin/bash
msg="$(cat <<EOL
You are about to disable OEM configuration mode. The system will boot into the
account setup wizard the next time it is started.
Are you sure you want to continue?
EOL
)";
if kdialog --warningyesno "${msg}"; then
sddm_file="$(cat <<EOL
[Autologin]
Session=lubuntu-oem-environment
2024-02-15 13:30:35 -06:00
User=oem
EOL
)"
echo "$sddm_file" | sudo tee /etc/sddm.conf
fi
kdialog --msgbox 'Done. The account setup wizard will run on next bootup.'