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]
|
[Service]
|
||||||
Type=idle
|
Type=idle
|
||||||
ExecStart=/home/pi/repo/hal/run.sh --forground
|
ExecStart=/home/pi/repo/hal/run.sh --foreground
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
||||||
6
run.sh
6
run.sh
|
|
@ -22,8 +22,8 @@ MODE="SCREEN"
|
||||||
|
|
||||||
until [[ $# -eq 0 ]]; do
|
until [[ $# -eq 0 ]]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-f|--forground)
|
-f|--foreground)
|
||||||
MODE="FORGROUND"
|
MODE="FOREGROUND"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
@ -54,7 +54,7 @@ trap 'exit 130' INT
|
||||||
# Build Hal source
|
# Build Hal source
|
||||||
./gradlew build
|
./gradlew build
|
||||||
|
|
||||||
if [[ ${MODE} == "FORGROUND" ]]; then
|
if [[ ${MODE} == "FOREGROUND" ]]; then
|
||||||
./gradlew run
|
./gradlew run
|
||||||
else
|
else
|
||||||
# Kill current session
|
# Kill current session
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue