fixed misspelling
This commit is contained in:
parent
1b93608d2a
commit
b4f6f15055
2 changed files with 4 additions and 4 deletions
|
|
@ -10,7 +10,7 @@ Description=Hal Server
|
|||
|
||||
[Service]
|
||||
Type=idle
|
||||
ExecStart=/home/pi/repo/hal/run.sh --forground
|
||||
ExecStart=/home/pi/repo/hal/run.sh --foreground
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
|
|||
6
run.sh
6
run.sh
|
|
@ -22,8 +22,8 @@ MODE="SCREEN"
|
|||
|
||||
until [[ $# -eq 0 ]]; do
|
||||
case "$1" in
|
||||
-f|--forground)
|
||||
MODE="FORGROUND"
|
||||
-f|--foreground)
|
||||
MODE="FOREGROUND"
|
||||
shift
|
||||
;;
|
||||
|
||||
|
|
@ -54,7 +54,7 @@ trap 'exit 130' INT
|
|||
# Build Hal source
|
||||
./gradlew build
|
||||
|
||||
if [[ ${MODE} == "FORGROUND" ]]; then
|
||||
if [[ ${MODE} == "FOREGROUND" ]]; then
|
||||
./gradlew run
|
||||
else
|
||||
# Kill current session
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue