Added Respberry Pi 1 support.

This commit is contained in:
Ylian Saint-Hilaire 2017-09-07 12:28:05 -07:00
parent b6c7403653
commit 4dfc83f09e
6 changed files with 11 additions and 5 deletions

BIN
agents/meshagent_pi Normal file

Binary file not shown.

View File

@ -46,9 +46,9 @@ CheckInstallAgent() {
# Linux x86, 32 bit
machineid=5
fi
if [ $machinetype == 'armv7l' ]
if [ $machinetype == 'armv6l' ] || [ $machinetype == 'armv7l' ]
then
# Raspberry Pi 2 or Raspberry Pi 3
# RaspberryPi 1 (armv6l) or RaspberryPi 2/3 (armv7l)
machineid=25
fi
# TODO: Add more machine types, detect KVM support, etc.

View File

@ -594,7 +594,7 @@ function CreateMeshCentralServer() {
22: { id: 22, localname: 'MeshAgent-WinMinCore-Service-x86-64.exe', rname: 'MeshAgent.exe', desc: 'Windows MinCore Service x86-32', update: true },
23: { id: 23, localname: 'MeshAgent-NodeJS', rname: 'meshagent', desc: 'NodeJS', update: false }, // Get this one from NPM
24: { id: 24, localname: 'meshagent_arm-linaro', rname: 'meshagent', desc: 'Linux ARM Linaro', update: true },
25: { id: 25, localname: 'meshagent_pi2', rname: 'meshagent', desc: 'Linux ARMv7 - Raspberry Pi 2/3', update: true } // armv7l
25: { id: 25, localname: 'meshagent_pi', rname: 'meshagent', desc: 'Linux ARM - Raspberry Pi', update: true } // "armv6l" and "armv7l"
};
// Update the list of available mesh agents

View File

@ -245,3 +245,9 @@ TypeError: Date.now is not a constructor
at Immediate._onImmediate (C:\Users\Default.DESKTOP-M9I88C9\Desktop\AmtWebApp\meshcentral\node_modules\async\lib\async.js:498:34)
-------- 9/7/2017, 12:15:48 PM --------
Error: ENOENT: no such file or directory, stat 'C:\Users\Default.DESKTOP-M9I88C9\Desktop\AmtWebApp\meshcentral\agents\meshagent_pi2'
at Error (native)

View File

@ -1,6 +1,6 @@
{
"name": "meshcentral",
"version": "0.0.7-n",
"version": "0.0.7-o",
"keywords": [
"Remote Management",
"Intel AMT",

View File

@ -2372,7 +2372,7 @@
}
// Attribute: Mesh Agent
var agentsStr = ['Unknown', 'Windows 32bit console', 'Windows 64bit console', 'Windows 32bit service', 'Windows 64bit service', 'Linux 32bit', 'Linux 64bit', 'MIPS', 'XENx86', 'Android ARM', 'Linux ARM', 'OSX 32bit', 'Android x86', 'PogoPlug ARM', 'Android APK', 'Linux Poky x86-32bit', 'OSX 64bit', 'ChromeOS', 'Linux Poky x86-64bit', 'Linux NoKVM x86-32bit', 'Linux NoKVM x86-64bit', 'Windows MinCore console', 'Windows MinCore service', 'NodeJS' ];
var agentsStr = ['Unknown', 'Windows 32bit console', 'Windows 64bit console', 'Windows 32bit service', 'Windows 64bit service', 'Linux 32bit', 'Linux 64bit', 'MIPS', 'XENx86', 'Android ARM', 'Linux ARM', 'OSX 32bit', 'Android x86', 'PogoPlug ARM', 'Android APK', 'Linux Poky x86-32bit', 'OSX 64bit', 'ChromeOS', 'Linux Poky x86-64bit', 'Linux NoKVM x86-32bit', 'Linux NoKVM x86-64bit', 'Windows MinCore console', 'Windows MinCore service', 'NodeJS', 'ARM-Linaro', 'ARMv6l / ARMv7l' ];
if ((node.agent != undefined) && (node.agent.id != undefined) && (node.agent.ver != undefined)) {
var str = '';
if (node.agent.id <= agentsStr.length) { str = agentsStr[node.agent.id]; } else { str = agentsStr[0]; }