summaryrefslogtreecommitdiff
path: root/config/chroot_local-includes/lib/live
diff options
context:
space:
mode:
authorHolger Paradies <retabell@gmx.de>2013-03-04 20:14:12 +0100
committerAndreas Loibl <andreas@andreas-loibl.de>2013-03-04 22:33:41 +0100
commit42a955c1a23da766033369a1b600df2295ebcecf (patch)
tree47541a9e33d7c05e50fbcf62a4e92dd90de5ff2f /config/chroot_local-includes/lib/live
parent2a15df271b4542ae8f4230fbb8a84cd5333be114 (diff)
downloadkanotix-42a955c1a23da766033369a1b600df2295ebcecf.zip
kanotix-42a955c1a23da766033369a1b600df2295ebcecf.tar.gz
disable-compiz-per-bootcmd-on-live
Diffstat (limited to 'config/chroot_local-includes/lib/live')
-rwxr-xr-xconfig/chroot_local-includes/lib/live/config/9023-disable-compiz26
1 files changed, 26 insertions, 0 deletions
diff --git a/config/chroot_local-includes/lib/live/config/9023-disable-compiz b/config/chroot_local-includes/lib/live/config/9023-disable-compiz
new file mode 100755
index 0000000..565a92c
--- /dev/null
+++ b/config/chroot_local-includes/lib/live/config/9023-disable-compiz
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+Nocompiz ()
+{
+ # Checking if configured
+ if [ -e /var/lib/live/config/nocompiz ]
+ then
+ return
+ fi
+ echo -n " nocompiz"
+ Configure_nocompiz
+}
+
+Configure_nocompiz ()
+{
+ # Boot parameters can be acted up either this way...
+ if ! grep -qs "nocompiz" /proc/cmdline
+ then
+ return
+ fi
+ rm -f /home/${LIVE_USERNAME}/.config/autostart/compiz_start.desktop
+ # Creating state file
+ touch /var/lib/live/config/nocompiz
+}
+
+Nocompiz