#!/bin/sh
if [ -z "${IPKG_INSTROOT}" ]; then
  # Prevent freeswitch from auto-starting after an upgrade. The modules may
  # not be upgraded yet and the user configuration may need a revision.
  sed -i '/^ENABLE_FREESWITCH="yes"/s/^/#/' /etc/default/freeswitch

  echo
  echo "o-------------------------------------------------------------------o"
  echo "| FreeSWITCH note                                                   |"
  echo "o-------------------------------------------------------------------o"
  echo "| Edit /etc/default/freeswitch to change basic init configuration.  |"
  echo "o-------------------------------------------------------------=^_^=-o"
  echo
fi
exit 0
