summaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-08-29 08:34:35 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-08-29 08:34:35 -0500
commiteab23f62a434e26de082b67f4af339b14300eb27 (patch)
tree6f2859bfee9aaa5722e58fd556120bac81ba4325 /boot
parent89b9bbdc96d48b9e1d4d6b6036dd504f42409561 (diff)
downloadhorizon-eab23f62a434e26de082b67f4af339b14300eb27.tar.gz
horizon-eab23f62a434e26de082b67f4af339b14300eb27.tar.bz2
horizon-eab23f62a434e26de082b67f4af339b14300eb27.tar.xz
horizon-eab23f62a434e26de082b67f4af339b14300eb27.zip
boot: Add gfxdetect oneshot
Diffstat (limited to 'boot')
-rw-r--r--boot/README.rst4
-rwxr-xr-xboot/gfxdetect25
2 files changed, 29 insertions, 0 deletions
diff --git a/boot/README.rst b/boot/README.rst
index 04f4e34..a67f9a7 100644
--- a/boot/README.rst
+++ b/boot/README.rst
@@ -43,6 +43,10 @@ master branch.
Directory Layout
================
+``gfxdetect``
+ OpenRC "service" to print a message about GPU detection.
+ Installed as ``/etc/init.d/gfxdetect``.
+
``horizon-session.desktop``
X session file.
Installed as ``/usr/share/xsessions/horizon.desktop``.
diff --git a/boot/gfxdetect b/boot/gfxdetect
new file mode 100755
index 0000000..df1c3ef
--- /dev/null
+++ b/boot/gfxdetect
@@ -0,0 +1,25 @@
+#!/sbin/openrc-run
+
+description="Tell the user whether graphical installation is proceeding"
+
+depend()
+{
+ need elogind
+ after *
+ keyword -timeout
+}
+
+start()
+{
+ loginctl show-seat seat0 | grep CanGraphical=yes >/dev/null
+ if [ $? -eq 0 ]; then
+ printf "\n\n\033[1;32mSystem Installation is starting on your default graphics adaptor.\033[0m\n\nPlease wait a moment...\n";
+ else
+ printf "\n\n\033[1;31mSystem Installation does not support your graphics adaptor.\033[0m\n\nYou may need a special kernel, driver support,\nor firmware to use the graphics adaptor in your computer.\n\nRefer to <https://help.adelielinux.org> for more information.\n";
+ fi
+}
+
+stop()
+{
+ :
+}