Add revpi-connect, revpi-core-3 to Raspberry Pi variants

We need the supervisor to be able to manage config.txt changes for these
Revolution Pi boards too.

Change-type: patch
Signed-off-by: Florin Sarbu <florin@balena.io>
This commit is contained in:
Florin Sarbu 2021-06-17 11:53:49 +02:00 committed by Christina Wang
parent 5486a74b82
commit 7c26480ada
No known key found for this signature in database
GPG Key ID: 7C3ED0230F440835

View File

@ -53,9 +53,14 @@ export class ConfigTxt extends ConfigBackend {
public async matches(deviceType: string): Promise<boolean> {
return (
['fincm3', 'rt-rpi-300', '243390-rpi3', 'nebra-hnt'].includes(
deviceType,
) || deviceType.startsWith('raspberry')
[
'fincm3',
'rt-rpi-300',
'243390-rpi3',
'nebra-hnt',
'revpi-connect',
'revpi-core-3',
].includes(deviceType) || deviceType.startsWith('raspberry')
);
}