#!/bin/sh clear echo "Page 1 of 3" echo "**********************************************************************" echo "* This script will install certain compiled programs that were *" echo "* developed by various authors. Some of these materials are not *" echo "* available in source code format at developer request. *" echo "* *" echo "* These independent and separate works are licensed for commercial *" echo "* and non-commercial use on any PBX in a Flash System only. *" echo "* You agree not reverse engineer the binaries. *" echo "* You agree not to *request* the source code. *" echo "* *" echo "* Please tap the ENTER key to read the next page *" echo "**********************************************************************" echo -e "\a" sleep 4 read clear echo "Page 2 of 3" echo "**********************************************************************" echo "* Provided you agree to the terms of use, these applications will be *" echo "* installed on your PBX in a Flash system. They are not part of the *" echo "* PBX in a Flash distribution. The programs will not run on any other*" echo "* pbx system nor are they licensed for such use. *" echo "* *" echo "* status * Show informatation about your PIAF System *" echo "* update-source * Program to update Digium source *" echo "* update-scripts * Installs the latest scripts/programs *" echo "* update-fixes * Fixes minor problems with PIAF (if any) *" echo "* install-key * Generates a private, secure server key *" echo "* install-munin * Munin application installer *" echo "* enable-fail2ban * Turns on fail2ban (already running) *" echo "* disable-fail2ban * Turns off fail2ban *" echo "* Please tap the ENTER key to read the next page *" echo "**********************************************************************" echo -e "\a" sleep 3 read clear echo "Page 3 of 3" echo "**********************************************************************" echo "* In order to download and install these free, compiled scripts, *" echo "* you must agree to the following: *" echo "* *" echo "* 1. I agree to honor the terms of use *" echo "* 2. I agree not to reverse engineer any of the binaries *" echo "* 3. I agree not to request the source code for these scripts *" echo "* 4. I agree to only run these scripts on a PBX in a Flash system, *" echo "* 5. I agree that these scripts are 'independent and separate works'.*" echo "* 6. By typing Y, I agree that this act constitutes my legal *" echo "* signature and agreement to all of these terms and conditions *" echo "* of use. *" echo "* *" echo "* IF YOU DO NOT AGREE WITH THESE TERMS OF USE,DO NOT INSTALL THESE *" echo "* PROGRAMS! *" echo "* *" echo "* Tap the Y key to agree to these terms or ENTER to exit *" echo "**********************************************************************" read -s -n1 case "$REPLY" in "Y" | "y" ) cd /tmp if [ -d "/tmp/ss" ]; then rm -rvf /tmp/ss >/dev/null 2>&1 fi mkdir /tmp/ss cd /tmp/ss wget http://www.pbxinaflash-scripts.com/ast14/files/securescripts.tar.gz >/dev/null 2>&1 if [ -e "/tmp/ss/securescripts.tar.gz" ]; then tar -xvzf /tmp/ss/securescripts.tar.gz >/dev/null 2>&1 rm -vf /tmp/ss/securescripts.tar.gz >/dev/null 2>&1 mv -vf * /usr/local/sbin >/dev/null 2>&1 cd .. rm -rvf /tmp/ss >/dev/null 2>&1 else echo "I am sorry but the file did not download. Please try again later" fi ;; *) clear exit 999 ;; esac