summaryrefslogtreecommitdiffstats
path: root/ubuntu/_base/applications/kde-guidance/debian/kde-guidance-trinity.init
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-04-03 18:05:50 +0200
committerSlávek Banko <slavek.banko@axis.cz>2019-04-03 18:05:50 +0200
commitaf5c905ec49085b7c396caf2c5166f0c34cbeb3f (patch)
tree56463d31ace48f127ed61169fdc2b4b8aedfcc56 /ubuntu/_base/applications/kde-guidance/debian/kde-guidance-trinity.init
parente43172a6e74706afc06ff8d11cbfa769bc949cc1 (diff)
downloadtde-packaging-af5c905ec49085b7c396caf2c5166f0c34cbeb3f.tar.gz
tde-packaging-af5c905ec49085b7c396caf2c5166f0c34cbeb3f.zip
DEB: use _base folder for a distro instead of specific distros (squeeze and maverick).
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'ubuntu/_base/applications/kde-guidance/debian/kde-guidance-trinity.init')
-rw-r--r--ubuntu/_base/applications/kde-guidance/debian/kde-guidance-trinity.init33
1 files changed, 33 insertions, 0 deletions
diff --git a/ubuntu/_base/applications/kde-guidance/debian/kde-guidance-trinity.init b/ubuntu/_base/applications/kde-guidance/debian/kde-guidance-trinity.init
new file mode 100644
index 000000000..30a3854d1
--- /dev/null
+++ b/ubuntu/_base/applications/kde-guidance/debian/kde-guidance-trinity.init
@@ -0,0 +1,33 @@
+#!/bin/sh
+### BEGIN INIT INFO
+# Provides: kde-guidance
+# Required-Start: $local_fs $remote_fs
+# Required-Stop: $local_fs $remote_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: 1
+# Short-Description: displayconfig hardware probe
+# Description: displayconfig hardware probe. This program should be run
+# during boot time. It quickly examines the graphics cards
+# (read: PCI devices) in the computer and compares they to
+# the list in the file guidance-gfxhardware-snapshot. If the
+# two lists differ then the Debian package manager is
+# automatically called to regenerate /etc/X11/xorg.conf.
+# This hopefully should mean that people can swap gfx cards
+# in and out and always have a system that will run Xorg.
+# (even though the config will be most likely be suboptimal.
+# Suboptimal is better than no X server).
+### END INIT INFO
+
+case "$1" in
+ start)
+ /opt/trinity/share/python-support/guidance-backends-trinity/displayconfig-hwprobe.py
+ ;;
+ stop)
+ ;;
+ restart|force-reload)
+ ;;
+ *)
+ ;;
+esac
+
+exit 0