#!/bin/sh
if [ -z "${IPKG_INSTROOT}" ]; then
  echo
  echo "o-------------------------------------------------------------------o"
  echo "| FreeSWITCH note                                                   |"
  echo "o-------------------------------------------------------------------o"
  echo "| Edit /etc/config/freeswitch to change basic init configuration.   |"
  echo "|                                                                   |"
  echo "| Also visit the Wiki at:                                           |"
  echo "| https://openwrt.org/docs/guide-user/services/voip/freeswitch      |"
  echo "o-------------------------------------------------------------=^_^=-o"
  echo
  [ -f /etc/hotplug.d/iface/99-freeswitch ] && {
    echo "o-------------------------------------------------------------------o"
    echo "| WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING   |"
    echo "o-------------------------------------------------------------------o"
    echo "| Please remove freeswitch-stable-misc-hotplug. The hotplug script  |"
    echo "| is now part of the main freeswitch-stable package. Please run:    |"
    echo "|                                                                   |"
    echo "| opkg remove freeswitch-stable-misc-hotplug                        |"
    echo "o-------------------------------------------------------------=^_^=-o"
    echo
  }
fi
exit 0
