From 33971cd8be712ea7042ff6063ee478abaee5cc08 Mon Sep 17 00:00:00 2001
From: Andreas Loibl <andreas@andreas-loibl.de>
Date: Sat, 1 Oct 2011 16:41:47 +0200
Subject: remove kde-config-touchpad if no touchpad is available

---
 backend/modules/install_configure | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/backend/modules/install_configure b/backend/modules/install_configure
index 28e351e..1675a65 100644
--- a/backend/modules/install_configure
+++ b/backend/modules/install_configure
@@ -131,6 +131,10 @@ function configure_target_purge_live_only_stuff()
 			mknbi \
 			syslinux \
 			tftpd-hpa 	&> /dev/null
+
+        # remove kde-config-touchpad if no touchpad is available
+        [ "$(qdbus org.kde.synaptiks /modules/synaptiks org.kde.Synaptiks.isTouchpadAvailable)" = true ] && \
+                chroot_it dpkg --purge kde-config-touchpad
 	
 	#  disable live config
 	[ -f "$TARGET/etc/default/distro" ] && \
-- 
cgit v1.0