wok-stable diff fluxbox/receipt @ rev 3400
wpa_supplicant: remove -w invalid option
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Jun 12 13:26:26 2009 +0200 (2009-06-12) |
parents | fce920962070 |
children | 77eb23ead823 |
line diff
1.1 --- a/fluxbox/receipt Sat May 02 23:04:43 2009 +0200 1.2 +++ b/fluxbox/receipt Fri Jun 12 13:26:26 2009 +0200 1.3 @@ -34,3 +34,22 @@ 1.4 cp -a $_pkg/usr/share $fs/usr 1.5 } 1.6 1.7 +post_install() 1.8 +{ 1.9 + res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//` 1.10 + # Adding WM to SLIM available sessions. 1.11 + if ! echo "$res" | grep -q $PACKAGE; then 1.12 + echo -n "Adding $PACKAGE to /etc/slim.conf..." 1.13 + sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf 1.14 + status 1.15 + fi 1.16 +} 1.17 + 1.18 +post_remove() 1.19 +{ 1.20 + # Remove WM from SLIM available sessions. 1.21 + if grep -q $PACKAGE $1/etc/slim.conf; then 1.22 + sed -i s/,$PACKAGE// $1/etc/slim.conf 1.23 + fi 1.24 +} 1.25 +