#!/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.
  uci set freeswitch.general.enabled=0
  uci commit freeswitch

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