Skip to content

Commit 124ab88

Browse files
committed
Adding Help module
1 parent 0cce4e6 commit 124ab88

3 files changed

Lines changed: 13 additions & 2 deletions

File tree

installer.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,22 @@ function initInstaller(){
3030
rm ./$MODULE_FOLDER/*
3131
}
3232

33-
MODE_EXTENDED="extended"
33+
MODE_HELP="help"
3434
MODE_JDK="jdk"
35+
MODE_EXTENDED="extended"
3536

3637
#Init
3738
initInstaller
3839
runModule utilities 0
3940

41+
if [ "$1" == "$MODE_HELP" ]; then
42+
runModule help
43+
fi
44+
4045
CREDENTIAL=""
4146
if [ "$1" == "$MODE_JDK" ]; then
4247
CREDENTIAL=$2
4348
runModule copy-jdk
44-
exit 0
4549
fi
4650

4751
runModule platform

modules/copy-jdk.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
if [ -e "/home/robot/ejdk-8-fcs-b132-linux-arm-sflt-03_mar_2014.tar.gz" ]; then
44
echo $CREDENTIAL
55
scp "/home/robot/ejdk-8-fcs-b132-linux-arm-sflt-03_mar_2014.tar.gz" "$CREDENTIAL:/home/robot"
6+
exit
67
else
78
echo "Sorry, the installer didn´t detect ejdk-8-fcs-b132-linux-arm-sflt-03_mar_2014.tar.gz"
89
echo "on /home/robot"

modules/help.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
echo "sudo ./installer.sh [Execute modules: platform, java & batteryMonitor]"
4+
echo "sudo ./installer.sh extended [Execute modules: platform, java, batteryMonitor & native-libraries]"
5+
echo "sudo ./installer.sh jdk robot@192.168.1.165 [Copy your JRE to a remote brick]"
6+
exit

0 commit comments

Comments
 (0)