Skip to content

Commit 292d75d

Browse files
committed
Detection of RPi Zero W added. Issue #44.
1 parent 089c792 commit 292d75d

File tree

5 files changed

+15
-10
lines changed

5 files changed

+15
-10
lines changed

classes/local/utils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public static function get_hardware_model() {
8888
// Define arrays of various hardware parameter values.
8989
$memorysizes = array('256', '512', '1024');
9090
$models = array('A', 'B', 'A+', 'B+', '2B', 'Alpha', 'CM1', 'Unknown',
91-
'3B', 'Zero', 'CM3', 'Unknown', 'Zero W', '3B+');
91+
'3B', 'Zero', 'CM3', 'Unknown', 'ZeroW', '3B+');
9292
$processors = array('BCM2835', 'BCM2836', 'BCM2837');
9393
$manufacturers = array('Sony UK', 'Egoman', 'Embest', 'Sony Japan',
9494
'Embest', 'Stadium');

index.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@
6060
case '3B+':
6161
$platform = 'rpi3bplus';
6262
break;
63+
case 'ZeroW':
64+
$platform = 'rpizerow';
65+
break;
6366
default: // Anything else is not a RPi.
6467
$platform = 'unknownmodel';
6568
}

lang/en/tool_moodlebox.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,10 @@
5454
$string['restartmessage'] = 'The MoodleBox is restarting. It will be online again in a moment.';
5555
$string['restartstop'] = 'Restart and shutdown';
5656
$string['rpi1'] = 'Raspberry Pi 1';
57-
$string['rpi2'] = 'Raspberry Pi 2 Model B';
58-
$string['rpi3'] = 'Raspberry Pi 3 Model B';
59-
$string['rpi3bplus'] = 'Raspberry Pi 3 Model B+';
57+
$string['rpi2'] = 'Raspberry Pi 2B';
58+
$string['rpi3'] = 'Raspberry Pi 3B';
59+
$string['rpi3bplus'] = 'Raspberry Pi 3B+';
60+
$string['rpizerow'] = 'Raspberry Pi Zero W';
6061
$string['sdcardavailablespace'] = 'Free space on SD card';
6162
$string['shutdown'] = 'Shutdown MoodleBox';
6263
$string['shutdownmessage'] = 'The MoodleBox is shutting down. Please wait a few seconds before disconnecting the power supply.';

lang/fr/tool_moodlebox.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,10 @@
5454
$string['restartmessage'] = 'La MoodleBox va redémarrer. Elle sera à nouveau accessible dans quelques instants.';
5555
$string['restartstop'] = 'Redémarrage et arrêt';
5656
$string['rpi1'] = 'Raspberry Pi 1';
57-
$string['rpi2'] = 'Raspberry Pi 2 modèle B';
58-
$string['rpi3'] = 'Raspberry Pi 3 modèle B';
59-
$string['rpi3bplus'] = 'Raspberry Pi 3 modèle B+';
57+
$string['rpi2'] = 'Raspberry Pi 2B';
58+
$string['rpi3'] = 'Raspberry Pi 3B';
59+
$string['rpi3bplus'] = 'Raspberry Pi 3B+';
60+
$string['rpizerow'] = 'Raspberry Pi Zero W';
6061
$string['sdcardavailablespace'] = 'Espace libre sur la carte SD';
6162
$string['shutdown'] = 'Arrêter la MoodleBox';
6263
$string['shutdownmessage'] = 'La MoodleBox va s\'arrêter. Veuillez attendre quelques secondes avant de retirer l\'alimentation.';

version.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626

2727
$plugin = new stdClass();
2828

29-
$plugin->version = 2018052600;
30-
$plugin->release = '1.10.3';
29+
$plugin->version = 2018061200;
30+
$plugin->release = '1.10.4 beta';
3131
$plugin->requires = 2017051500;
32-
$plugin->maturity = MATURITY_STABLE;
32+
$plugin->maturity = MATURITY_BETA;
3333
$plugin->component = 'tool_moodlebox';

0 commit comments

Comments
 (0)