wok-current diff lxde/receipt @ rev 13047

Up: phpmyadmin (3.5.1)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Mon Jun 18 21:37:33 2012 +0200 (2012-06-18)
parents 8ab73e236754
children 4c7322d54d65
line diff
     1.1 --- a/lxde/receipt	Sun Apr 22 18:05:46 2012 +0200
     1.2 +++ b/lxde/receipt	Mon Jun 18 21:37:33 2012 +0200
     1.3 @@ -23,3 +23,22 @@
     1.4  	cp -a $stuff/lxde-logout.desktop $fs/usr/share/applications
     1.5  	chown -R 0.0 $fs
     1.6  }
     1.7 +
     1.8 +# Add WM to SLIM available sessions.
     1.9 +post_install()
    1.10 +{
    1.11 +	res=$(cat $root/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
    1.12 +	if ! echo "$res" | grep -q $PACKAGE; then
    1.13 +		echo -n "Adding $PACKAGE to /etc/slim.conf..."
    1.14 +		sed -i "s/^sessions.*/sessions            ${res},$PACKAGE/" $root/etc/slim.conf
    1.15 +		status
    1.16 +	fi
    1.17 +}
    1.18 +
    1.19 +# Remove WM from SLIM available sessions.
    1.20 +post_remove()
    1.21 +{
    1.22 +	if grep -q $PACKAGE $root/etc/slim.conf; then
    1.23 +		sed -i s/,$PACKAGE// $root/etc/slim.conf
    1.24 +	fi
    1.25 +}