#!/bin/sh
if [ -z "${IPKG_INSTROOT}" ]; then
  chown restund:restund /etc/restund.conf

  # Prevent restund from auto-starting after an upgrade. The modules may
  # not be upgraded yet and the user configuration may need a revision.
  sed -i '/^ENABLE_RESTUND="yes"/s/^/#/' /etc/default/restund
fi
exit 0
