diff options
-rw-r--r-- | graphical_start.sh | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/graphical_start.sh b/graphical_start.sh index d14c0b1..a63bc5f 100644 --- a/graphical_start.sh +++ b/graphical_start.sh @@ -1,18 +1,16 @@ #!/bin/bash -setup_displaymanager() { - # determine what is the login manager - if [ -n "$(equo match --installed gnome-base/gdm -qv)" ]; then - systemctl start gdm - elif [ -n "$(equo match --installed lxde-base/lxdm -qv)" ]; then - systemctl start lxdm - elif [ -n "$(equo match --installed x11-misc/lightdm-base -qv)" ]; then - systemctl start lightdm - elif [ -n "$(equo match --installed kde-base/kdm -qv)" ]; then - systemctl start kdm - elif [ -n "$(equo match --installed x11-misc/slim -qv)" ]; then - systemctl start slim - else - systemctl start xdm - fi -} + +if [ -n "$(equo match --installed gnome-base/gdm -qv)" ]; then + systemctl start gdm +elif [ -n "$(equo match --installed lxde-base/lxdm -qv)" ]; then + systemctl start lxdm +elif [ -n "$(equo match --installed x11-misc/lightdm-base -qv)" ]; then + systemctl start lightdm +elif [ -n "$(equo match --installed kde-base/kdm -qv)" ]; then + systemctl start kdm +elif [ -n "$(equo match --installed x11-misc/slim -qv)" ]; then + systemctl start slim +else + systemctl start xdm +fi |