summaryrefslogtreecommitdiff
path: root/x-setup-init.d
diff options
context:
space:
mode:
Diffstat (limited to 'x-setup-init.d')
-rw-r--r--x-setup-init.d26
1 files changed, 26 insertions, 0 deletions
diff --git a/x-setup-init.d b/x-setup-init.d
new file mode 100644
index 0000000..12f201a
--- /dev/null
+++ b/x-setup-init.d
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+# Copyright 2009-2013 Sabayon
+# Copyright 2013 Kogaion
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ after mtab
+ before hostname
+ before xdm
+}
+
+
+
+start() {
+ . /sbin/kogaion-functions.sh
+
+ ebegin "Configuring GPUs and input devices"
+ if kogaion_is_live; then
+ /sbin/gpu-configuration > /dev/null
+ eend 0
+ return 0
+ fi
+
+ /usr/libexec/x-setup.sh > /dev/null
+ eend ${?}
+}