Proyecto

General

Perfil

« Anterior | Siguiente » 

Revisión 308

Opción gdm o gdm3

Ver diferencias:

autorename/trunk/debian/autorename-client.dirs
var/lib/autorename-client
usr/share/autorename-client
etc/gdm/PostLogin
etc/gdm3/PostLogin
autorename/trunk/debian/autorename-client.postinst
case "$1" in
configure)
if [ ! -f /etc/gdm/PostLogin/Default ];
then
echo "#!/bin/sh" >> /etc/gdm/PostLogin/Default
DIR="gdm"
if [ -d "/etc/gdm3" ]; then
DIR="gdm3"
fi
echo "/usr/share/autorename-client/client.py \$LOGNAME" >> /etc/gdm/PostLogin/Default
chmod +x /etc/gdm/PostLogin/Default
if [ ! -f /etc/$DIR/PostLogin/Default ]; then
echo "#!/bin/sh" >> /etc/$DIR/PostLogin/Default
fi
echo "/usr/share/autorename-client/client.py \$LOGNAME" >> /etc/$DIR/PostLogin/Default
chmod +x /etc/$DIR/PostLogin/Default
;;
abort-upgrade|abort-remove|abort-deconfigure)
autorename/trunk/debian/autorename-client.postrm
case "$1" in
remove|purge)
sed 's/\/usr\/share\/autorename-client\/client.py \$LOGNAME//g' /etc/gdm/PostLogin/Default > /tmp/DefaultGDM.tmp
mv /tmp/DefaultGDM.tmp /etc/gdm/PostLogin/Default
DIR="gdm"
if [ -d "/etc/gdm3" ]; then
DIR="gdm3"
fi
sed 's/\/usr\/share\/autorename-client\/client.py \$LOGNAME//g' /etc/$DIR/PostLogin/Default > /tmp/DefaultGDM.tmp
mv /tmp/DefaultGDM.tmp /etc/$DIR/PostLogin/Default
;;
abort-upgrade|abort-remove|abort-deconfigure)
autorename/trunk/debian/changelog
autorename (0.1-3) unstable; urgency=low
* Add gdm3 option
-- Manuel Mora Gordillo <manuito@gmail.com> Mon, 25 Apr 2012 10:36:00 +0200
autorename (0.1-2) unstable; urgency=low
* Add post remove rules

Exportar a: Unified diff