Skip to content

Commit e4b344f

Browse files
committed
Isolating batteryMonitor as another option.
1 parent c97ef95 commit e4b344f

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@ require some configuration to run in the right way.
99

1010
This project tries to save time in this process.
1111

12-
The installer will install the following libraries & utilities by default:
12+
The installer will install the following libraries by default:
1313

1414
+ Java JDK 8 (Only for BrickPi/PiStorms)
15+
16+
If you like, you can install a utility to monitor the battery. (Recommended)
17+
1518
+ [BatteryMonitor](https://github.com/ev3dev-lang-java/batteryMonitor) (A Java utility to monitor the Battery)
1619

1720
But it is possible to install the following libraries if your project requires them.

installer.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ function initInstaller(){
3232

3333
MODE_HELP="help"
3434
MODE_JDK="jdk"
35+
MODE_BATTERY_MONITOR="batteryMonitor"
3536
MODE_COPY_INSTALLER="copy-installer"
3637
MODE_EXTENDED="extended"
3738

@@ -57,7 +58,10 @@ fi
5758

5859
runModule platform
5960
runModule java
60-
runModule battery-monitor
61+
62+
if [ "$1" == "$MODE_BATTERY_MONITOR" ]; then
63+
runModule battery-monitor
64+
fi
6165

6266
if [ "$1" == "$MODE_EXTENDED" ]; then
6367
runModule native-libraries

modules/help.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
echo "Installer options:"
44
echo "sudo ./installer.sh [Execute modules: platform, java & batteryMonitor]"
5+
echo "sudo ./installer.sh batteryMonitor [Install batteryMonitor]"
56
echo "sudo ./installer.sh extended [Execute modules: platform, java, batteryMonitor & native-libraries]"
67
echo "sudo ./installer.sh jdk [email protected] [Copy your local JRE to a remote brick]"
78
echo "sudo ./installer.sh copy-installer [email protected] [Copy the installer to a remote brick]"

0 commit comments

Comments
 (0)