#!/bin/sh

# config.sh: post-installation configuration.

# This should be run manually if you have not done so already.
# If you have already installed Asterisk from packages or standard
# source installation, you probably don't need to run this

cd zaptel
make config
cd ..

cd asterisk
make samples
# FIXME: 'make config' will only work on distros with 
# /etc/rc.d/init.d, ini which case it will install the "rh"
# sample init.d script. For other distros it will actually fail.
#
# This may be fixed in a way in asterisk 1.2.20 .
make config
cd ..

# show our user what hardware he has:
if [ -x /usr/sbin/zaptel_hardware ]; then
	zaptel_hardware
fi

# using full path due to the bad copy trixbox has in /usr/local/sbin:
# This assumes a working /etc/init.d/asterisk.
echo "If you have Zaptel hardware, you can use the automatic config script:"
echo ""
echo "   /usr/sbin/genzaptelconf -sdMv"
echo ""
