rendered paste body#!/bin/sh
#
clear
echo ""
echo "Please choose from the fallowing options"
exho ""
echo "Warning"
echo ""
echo "If you install the Thirdlane gui please do not install the Digium"
echo "Gui as they will conflict with each other and can break the install"
echo""
echo "IF you plan to use this box in production do not install the OpenG729 codec."
echo " This is here only for g729 testing."
echo""
echo "1) Install Asterisk + Required Dependancies"
echo""
echo "2) Install and configure WebMin (Needed for the ThirdLane Gui)"
echo""
echo "3) Install ThirdLane PBXManager Gui"
echo""
echo "4) Install Digium Asterisk-Gui"
echo""
echo "5) Install Open G729 codec for testing"
echo""
echo "6) Configure the system"
echo""
echo "7) Reboot the system"
echo""
echo "8) Exit Menu"
echo ""
read install
case $install in
1)
pkg_add -F pkgs/ 2> /dev/null &&
rehash &&
cp -rp asterisk-configs/ /usr/local/etc/asterisk &&
;;
2)
pkg_add -F webmin/p5-Net-SSLeay-1.30_1.tbz &&
pkg_add -F webmin/p5-Authen-PAM-0.16_1.tbz &&
pkg_add -F webmin/webmin-1.370_2.tbz&&
/usr/local/lib/webmin/setup.sh &&
;;
3)
./install-gui.sh
;;
4)
pkg_add -F digium/ &&
;;
5)
./install-g729.sh
;;
6)
cat etc/rc.conf >> /etc/rc.conf &&
cat etc/periodic.conf >> /etc/periodic.conf &&
rm -rf /etc/motd &&
cat etc/motd >> /etc/motd &&
;;
7)
cat gui-access.txt &&
shutdown -r +1
;;
8)
exit
;;
esac
1
./install-pbx.sh: 37: Syntax error: ";;" unexpected