All pastes #796268 Raw Edit

Miscellany

public text v1 · immutable
#796268 ·published 2007-11-24 22:41 UTC
rendered paste body
#!/bin/sh
#
until [ "${DONE}" = "done" ]
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
     DONE=done
    ;;
esac