#!/bin/sh
if [ -z "${IPKG_INSTROOT}" ]; then
    echo "Removing rc.d symlink for xclient"
     /etc/init.d/xclient disable
     /etc/init.d/xclient stop
    echo "Removing firewall rule for xclient"
	  uci -q batch <<-EOF >/dev/null
		delete firewall.xclient
		commit firewall
	chmod -R 777 /usr/share/xclient 2>/dev/null	
EOF
fi

exit 0
