Skip to content

Commit 399ddd9

Browse files
committed
Adding support to do remote copy of JDK
1 parent 31a7137 commit 399ddd9

2 files changed

Lines changed: 25 additions & 1 deletion

File tree

installer.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,29 @@ function initInstaller(){
3030
rm ./$MODULE_FOLDER/*
3131
}
3232

33+
$MODE_EXTENDED="extended"
34+
$MODE_JDK="jdk"
35+
3336
#Init
3437
initInstaller
3538
runModule utilities 0
3639

40+
CREDENTIAL=""
41+
if [ "$1" == "$MODE_JDK" ]; then
42+
CREDENTIAL = $2
43+
runModule copy-jdk
44+
exit 0
45+
fi
46+
3747
runModule platform
3848
runModule java
3949

4050
exit
4151

52+
if [ "$1" == "$MODE_EXTENDED" ]; then
53+
runModule native-libraries
54+
fi
55+
4256
runModule battery-monitor
43-
runModule native-libraries
4457

4558
exit 0

modules/copy-jdk.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
if [ -e "/home/robot/ejdk-8-fcs-b132-linux-arm-sflt-03_mar_2014.tar.gz" ]; then
4+
scp "/home/robot/ejdk-8-fcs-b132-linux-arm-sflt-03_mar_2014.tar.gz" $CREDENTIAL:/home/robot
5+
else
6+
echo "Sorry, the installer didn´t detect ejdk-8-fcs-b132-linux-arm-sflt-03_mar_2014.tar.gz"
7+
echo "on /home/robot"
8+
echo "try to copy the file again to the EV3 Brick."
9+
echo
10+
exit 1
11+
fi

0 commit comments

Comments
 (0)