summaryrefslogtreecommitdiff
path: root/app-misc/rogentoslive-tools/files/2/x-setup-init.d
diff options
context:
space:
mode:
authorBlackNoxis <steven.darklight@gmail.com>2014-02-15 23:24:26 +0200
committerBlackNoxis <steven.darklight@gmail.com>2014-02-15 23:24:26 +0200
commit7224c1253228e5c29c78cb3f0f26ce34770f2356 (patch)
tree1684924656132935256e034f35f92abee6623265 /app-misc/rogentoslive-tools/files/2/x-setup-init.d
Added ebuilds for kogaion desktop
Diffstat (limited to 'app-misc/rogentoslive-tools/files/2/x-setup-init.d')
-rw-r--r--app-misc/rogentoslive-tools/files/2/x-setup-init.d26
1 files changed, 26 insertions, 0 deletions
diff --git a/app-misc/rogentoslive-tools/files/2/x-setup-init.d b/app-misc/rogentoslive-tools/files/2/x-setup-init.d
new file mode 100644
index 00000000..0c486c06
--- /dev/null
+++ b/app-misc/rogentoslive-tools/files/2/x-setup-init.d
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+# Copyright 2009-2013 Sabayon
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ after mtab
+ before hostname
+ before xdm
+}
+
+
+
+start() {
+ . /sbin/rogentos-functions.sh
+
+ ebegin "Configuring GPUs and input devices"
+ if rogentos_is_live; then
+ start-stop-daemon --start --background --pidfile /var/run/x-setup.pid \
+ --make-pidfile --exec /usr/sbin/x-setup-configuration
+ eend 0
+ return 0
+ fi
+
+ /usr/libexec/x-setup.sh > /dev/null
+ eend ${?}
+}