#!/bin/sh
#
#
echo ""
echo "## Executing SUNWx25a PATCH preremove script"

# Stop X.25 software before deinstalling the patch.

sh /etc/init.d/x25.control status > /tmp/status$$ 2>&1
net_status=`grep 'up' /tmp/status$$`
if [ "$net_status" != "" ]; then
	sh /etc/init.d/x25.control stop
fi
rm -f /tmp/status$$

# Clean up Xty directory

if [ -d /etc/Xty ]
then
        echo "Deleting /etc/Xty directory"
        rm -r /etc/Xty
fi

echo ""
#
