diff --git a/launch_chffrplus.sh b/launch_chffrplus.sh index 247cb96af..469887095 100755 --- a/launch_chffrplus.sh +++ b/launch_chffrplus.sh @@ -25,6 +25,7 @@ function launch { # exec "${BASH_SOURCE[0]}" # fi chmod 700 reset_update.sh + chmod 700 update_panda_firmware.sh chmod 700 bs # no cpu rationing for now diff --git a/reset_update.sh b/reset_update.sh index 4941106b1..2be97ce84 100755 --- a/reset_update.sh +++ b/reset_update.sh @@ -2,6 +2,6 @@ export LD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib export HOME=/data/data/com.termux/files/home -export PATH=/usr/local/bin:/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/sbin:/data/data/com.termux/files/usr/bin/applets:/bin:/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin +export PATH=/usr/local/bin:/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/sbin:/data/data/com.termux/files/usr/bin/applets:/bin:/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin:/data/data/com.termux/files/usr/bin/git cd /data/openpilot && git reset --hard && git pull && reboot \ No newline at end of file diff --git a/update_panda_firmware.sh b/update_panda_firmware.sh index 857c743a3..44e22f8e8 100755 --- a/update_panda_firmware.sh +++ b/update_panda_firmware.sh @@ -2,6 +2,7 @@ export LD_LIBRARY_PATH=/data/data/com.termux/files/usr/lib export HOME=/data/data/com.termux/files/home -export PATH=/usr/local/bin:/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/sbin:/data/data/com.termux/files/usr/bin/applets:/bin:/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin +export PATH=/usr/local/bin:/data/data/com.termux/files/usr/bin:/data/data/com.termux/files/usr/sbin:/data/data/com.termux/files/usr/bin/applets:/bin:/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin:/data/data/com.termux/files/usr/bin/python +export PYTHONPATH=/data/openpilot -cd /data/openpilot/panda ; pkill -f boardd ; PYTHONPATH=..; python -c "from panda import Panda; Panda().flash()" \ No newline at end of file +cd /data/openpilot/panda ; pkill -f boardd ; python -c "from panda import Panda; Panda().flash()" \ No newline at end of file