[Frugalware-git] devil505: lightdm-1.2.2-2-i686 * added install file as recommended by bouleetbil :)

Devil505 devil505linux at gmail.com
Wed May 2 18:51:51 CEST 2012


Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=devil505.git;a=commitdiff;h=5df2f36ac0801c1d52e4d6f2d26159ef44739644

commit 5df2f36ac0801c1d52e4d6f2d26159ef44739644
Author: Devil505 <devil505linux at gmail.com>
Date:   Wed May 2 18:51:38 2012 +0200

lightdm-1.2.2-2-i686
* added install file as recommended by bouleetbil :)

diff --git a/source/xfce4/lightdm/lightdm.install b/source/xfce4/lightdm/lightdm.install
new file mode 100644
index 0000000..b3d130e
--- /dev/null
+++ b/source/xfce4/lightdm/lightdm.install
@@ -0,0 +1,22 @@
+post_install()
+{
+	sed 's|"/usr/bin/lightdm"$|"/usr/sbin/lightdm"|' -i /etc/sysconfig/desktop
+	sed 's|^#desktop="/usr/sbin/lightdm"$|desktop="/usr/sbin/lightdm"|' -i /etc/sysconfig/desktop
+}
+
+post_upgrade()
+{
+	post_install
+}
+
+post_remove()
+{
+	sed -i 's|^desktop="/usr/sbin/lightdm"$|#desktop="/usr/sbin/lightdm"|' /etc/sysconfig/desktop
+}
+
+op=$1
+shift
+
+$op $*
+
+# vim: ft=sh


More information about the Frugalware-git mailing list