Sophie

Sophie

distrib > Mandriva > 2007.0 > i586 > media > contrib-release > by-pkgid > 14249a2d1b68c9c40a961d74e5b3e065 > scriptlet

xtel-3.3.0-8mdk.i586.rpm

POSTIN

/bin/sh
if [ "`grep xtel /etc/services`" = "" ]; then
	echo -n "Mise à jour de /etc/services..."
	echo -e "xtel\t\t1313/tcp\t\t\t# Xtel" >> /etc/services
	echo -e "xtelw\t\t1314/tcp\t\t\t# Xtel HyperTerminal" >> /etc/services
	echo "OK"
fi

service xinetd restart

chkfontpath --list | grep /usr/X11R6/lib/X11/fonts/xtel > /dev/null 2>&1

if [ $? != 0 ]; then
   chkfontpath --add /usr/X11R6/lib/X11/fonts/xtel
fi

if [ -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi

POSTUN

/bin/sh
service xinetd restart

if [ "$1" = "0" ]; then 
  chkfontpath --remove /usr/X11R6/lib/X11/fonts/xtel
fi
if [ "$1" = "0" -a -x /usr/bin/update-menus ]; then /usr/bin/update-menus || true ; fi