#!/bin/sh
[ -n "${IPKG_INSTROOT}" ] || {
  /etc/init.d/netflow stop 2>/dev/null
  /etc/init.d/netflow disable 2>/dev/null
  rm -f /usr/bin/netflow
  rm -f /usr/bin/netflow_x86_64
  rm -f /usr/bin/netflow_aarch64
  rm -f /usr/bin/netflow_mipsel
  rm -f /usr/bin/netflow_arm
  rm -f /usr/bin/netflow_mips
  rm -rf /tmp/luci-indexcache /tmp/luci-modulecache
  rm -rf /tmp/netflow_*
  rm -f /etc/netflow/mihomo/config.yaml
  rm -f /etc/netflow/mihomo/cache.db
  rm -rf /etc/netflow/mihomo/cache
}
exit 0
