Skip to content

Commit

Permalink
don't auto-capitalize DW_EXTRA_CONFIG
Browse files Browse the repository at this point in the history
  • Loading branch information
kx1t committed Nov 18, 2023
1 parent 6d64b69 commit 54e2606
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion rootfs/etc/s6-overlay/scripts/30-set-direwolf-params
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,8 @@ if [[ -n "$DW_EXTRA_CONFIGS" ]]; then
# Now loop through each of the elements:
for instance in "${configs[@]}"
do
instance="${instance^^}"
# don't do this -- instance="${instance^^}"
while [[ "${instance:0:1}" == " " ]]; do instance="${instance:1}"; done
param="${instance%%=*}" # all before the first "="
value="${instance#*=}" # all after the first "="
if [[ -z "${instance}" ]]; then
Expand Down
8 changes: 5 additions & 3 deletions rootfs/etc/s6-overlay/scripts/direwolf
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ if [[ -n "$DW_DEBUG" ]]; then DW_ARGS+=("-d $DW_DEBUG"); fi
if [[ -n "$DW_EXTRA_CMDLINEARGS" ]]; then DW_ARGS+=("$DW_EXTRA_CMDLINEARGS"); fi

# Wait until GPSD is running:
while ! pgrep gpsd >/dev/null 2>&1; do
sleep 1
done
if ! chk_disabled "$DW_WAIT_GPSD"; then
while ! pgrep gpsd >/dev/null 2>&1; do
sleep 1
done
fi

# Wait until GPSD is established
sleep 10
Expand Down

0 comments on commit 54e2606

Please sign in to comment.