Browse Source

adding in os checking

Richard Neese 11 years ago
parent
commit
e6ce6f12fb
1 changed files with 16 additions and 0 deletions
  1. 16 0
      install/Debian/Fusionpbx-Debian-Embedded-Appliance-Install.sh

+ 16 - 0
install/Debian/Fusionpbx-Debian-Embedded-Appliance-Install.sh

@@ -23,6 +23,22 @@
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 # THE SOFTWARE.
 #
+################################################################################
+#DO a OS Check
+case $(uname -m) in armv[4-6]l)
+echo
+echo " Sorry Armel boards are not supported by this script. "
+echo " ArmHF arm v7 and up is requires. "
+echo
+exit 1
+esac
+
+case $(uname -m) in x86_64|i[4-6]86|armv[7-8]l)
+echo
+echo " Intel / Amd / ARMHF boards Spported"
+echo
+esac
+
 ################################################################################
 cat  <<  DELIM