Skip to content

Commit 610f3e6

Browse files
committed
Updating scripts to new version of battery monitor
1 parent 608f1a6 commit 610f3e6

5 files changed

Lines changed: 21 additions & 344 deletions

File tree

installer.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ if [ "$1" == "$MODE_HELP" ]; then
4343
runModule help
4444
fi
4545

46+
#TODO Disable this option if platform is not EV3BRICK
4647
CREDENTIAL=""
4748
if [ "$1" == "$MODE_JDK" ]; then
4849
CREDENTIAL=$2

modules/battery-monitor.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
function installBatteryMonitor() {
44
cd /home/robot
5-
wget https://github.com/ev3dev-lang-java/batteryMonitor/raw/develop/releases/batteryMonitor-0.2.0-SNAPSHOT.zip
5+
wget https://github.com/ev3dev-lang-java/batteryMonitor/raw/release/v0.2.0-RELEASE/releases/batteryMonitor-0.2.0-RELEASE.zip
66

7+
#TODO Move block to function
78
isInstalled unzip
89
if [ "$INSTALLED" == "$INSTALLED_NO" ]; then
910
if [ "$PLATFORM" == "$EV3" ]; then
@@ -19,8 +20,9 @@ function installBatteryMonitor() {
1920

2021
fi
2122

22-
unzip batteryMonitor-0.2.0-SNAPSHOT.zip
23-
mv batteryMonitor-0.2.0-SNAPSHOT batteryMonitor
23+
#TODO Move to a function
24+
unzip batteryMonitor-0.2.0-RELEASE.zip
25+
mv batteryMonitor-0.2.0-RELEASE batteryMonitor
2426
cd batteryMonitor
2527
chmod +x ./start.sh
2628
chmod +x ./stop.sh
@@ -30,7 +32,6 @@ function installBatteryMonitor() {
3032
update-rc.d batteryMonitor-service.sh defaults
3133
cd /home/robot/batteryMonitor
3234
./start.sh
33-
ps aux | grep java
3435
}
3536

3637
if [ "$PLATFORM" == "$UNKNOWN" ]; then

0 commit comments

Comments
 (0)