Explorar o código

adding in os checking

Richard Neese %!s(int64=11) %!d(string=hai) anos
pai
achega
e6ce6f12fb
Modificáronse 1 ficheiros con 16 adicións e 0 borrados
  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