#! /bin/sh
if isi services ndmpd | grep enabled; then
    echo "disabling ndmpd"
    isi services ndmpd disable
    touch /tmp/pkg_isi_ndmpd
    echo "sleeping 10 seconds for services to settle"
    sleep 10
    if ps axw|grep ndmp|grep -v grep; then
        echo "isi_ndmp_d still running, killing"
        killall -9 isi_ndmp_d
    fi
fi

exit 0
