Unverified Commit b0d18be2 authored by Igor Pečovnik's avatar Igor Pečovnik Committed by GitHub
Browse files

Backward compatibility fixes

parent 6c79f66a
...@@ -915,9 +915,12 @@ function jobs () ...@@ -915,9 +915,12 @@ function jobs ()
exitstatus=$?; exitstatus=$?;
if [[ $exitstatus = 0 ]]; then if [[ $exitstatus = 0 ]]; then
service lightdm stop >/dev/null 2>&1 && systemctl disable lightdm.service >/dev/null 2>&1 service lightdm stop >/dev/null 2>&1 && systemctl disable lightdm.service >/dev/null 2>&1
service nodm stop >/dev/null 2>&1 && systemctl disable nodm.service >/dev/null 2>&1
fi fi
else else
if ! is_package_manager_running; then if ! is_package_manager_running; then
# install lightdm = backward compatibility
[[ -z $(dpkg -l | grep lightdm) ]] && debconf-apt-progress -- apt-get -o Dpkg::Options::="--force-confold" -y --no-install-recommends install lightdm-gtk-greeter lightdm
if [[ -n $DESKTOP_INSTALLED ]]; then if [[ -n $DESKTOP_INSTALLED ]]; then
dialog --title " Display manager " --backtitle "$BACKTITLE" --yesno "\nDo you want to enable autologin?" 7 36 dialog --title " Display manager " --backtitle "$BACKTITLE" --yesno "\nDo you want to enable autologin?" 7 36
exitstatus=$?; exitstatus=$?;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment