modeld: fix bash scripts (#29643)

Fix shebang. Fix LD_PRELOAD
old-commit-hash: a4a0429fca
beeps
Kacper Rączy 2 years ago committed by GitHub
parent 68dd600872
commit d254137f4c
  1. 2
      selfdrive/modeld/dmonitoringmodeld
  2. 5
      selfdrive/modeld/modeld
  3. 2
      selfdrive/modeld/navmodeld

@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
cd $DIR

@ -1,7 +1,10 @@
#!/bin/sh
#!/usr/bin/env bash
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
cd "$DIR/../../"
if [ -f "$DIR/libthneed.so" ]; then
export LD_PRELOAD="$DIR/libthneed.so"
fi
exec "$DIR/modeld.py"

@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
cd $DIR

Loading…
Cancel
Save