Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > media > contrib > by-pkgid > c08eaec350d5ec0023457fdf759a204b > scriptlet

xtel-3.3.0-8mdk.x86_64.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