#!/bin/sh
# check if we are on real system
if [ -z "${IPKG_INSTROOT}" ]; then
    echo "Removing rc.d symlink for clash"
    /etc/init.d/clash disable
    /etc/init.d/clash stop
    echo "Removing firewall rule for clash"
	uci -q batch <<-EOF >/dev/null
	delete firewall.clash
	commit firewall
EOF
fi

exit 0
