瀏覽代碼

adding in os checking

Richard Neese 11 年之前
父節點
當前提交
e6ce6f12fb
共有 1 個文件被更改,包括 16 次插入0 次删除
  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