complain if user tries to user boot to desktop without lightdm installed

This commit is contained in:
Alex Bradbury 2012-10-28 21:03:46 +00:00
parent a7a7b12ad0
commit 51095a837a

View File

@ -317,6 +317,7 @@ do_ssh() {
}
do_boot_behaviour() {
if [ -e /etc/init.d/lightdm ]; then
whiptail --yesno "Should we boot straight to desktop?" 20 60 2
RET=$?
if [ $RET -eq 0 ]; then # yes
@ -329,6 +330,10 @@ do_boot_behaviour() {
else # user hit escape
return 1
fi
else
whiptail --msgbox "Do sudo apt-get install lightdm to allow configuration of boot to desktop" 20 60 2
return 1
fi
}
do_update() {