aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rwxr-xr-xdisplay-manager-failure-message26
2 files changed, 28 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 05fde230..ebb3a397 100644
--- a/Makefile
+++ b/Makefile
@@ -42,6 +42,8 @@ install:
mkdir -p $(ROOT)/etc/X11
install -m755 prefdm $(ROOT)/etc/X11/prefdm
+ mkdir -p $(ROOT)/usr/bin
+ install -m755 display-manager-failure-message $(ROOT)/usr/bin/display-manager-failure-message
install -m755 -d $(ROOT)/etc/rc.d $(ROOT)/etc/sysconfig
install -m755 rc.d/rc rc.d/rc.local rc.d/rc.sysinit $(ROOT)/etc/rc.d/
diff --git a/display-manager-failure-message b/display-manager-failure-message
new file mode 100755
index 00000000..9e51b17f
--- /dev/null
+++ b/display-manager-failure-message
@@ -0,0 +1,26 @@
+#!/bin/bash
+
+echo >&2
+echo "Sorry, but there has been a problem starting your graphical display." >&2
+echo >&2
+echo "In order to debug your problem we will automatically switch to a text-based" >&2
+echo "login screen from where login as the root user and run the 'drakx11' utility" >&2
+echo "to configure your graphical system." >&2
+echo >&2
+echo "After configuration, you can restart your graphical environment via the command:" >&2
+echo " systemctl default" >&2
+echo "at which point you will be automatically logged out while the graphical system" >&2
+echo "starts." >&2
+echo >&2
+echo "If you would prefer to avoid this message and go straight to a text-based login" >&2
+echo "system at boot, simply change the symlink /etc/systemd/system/default.target to" >&2
+echo "point instead to /lib/systemd/system/multi-user.target" >&2
+echo >&2
+echo "Good luck :)" >&2
+echo >&2
+echo "Press any key." >&2
+read -n 1
+
+echo >&2
+echo "Switching to multi-user.target..." >&2
+systemctl isolate multi-user.target