diff --git a/reset_update.sh b/reset_update.sh index 3b8412999..4941106b1 100755 --- a/reset_update.sh +++ b/reset_update.sh @@ -1,3 +1,7 @@ #!/usr/bin/bash -#cd /data/openpilot && git reset --hard && git pull && reboot -cd /data/openpilot && git status \ No newline at end of file + +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 + +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 new file mode 100755 index 000000000..857c743a3 --- /dev/null +++ b/update_panda_firmware.sh @@ -0,0 +1,7 @@ +#!/usr/bin/bash + +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 + +cd /data/openpilot/panda ; pkill -f boardd ; PYTHONPATH=..; python -c "from panda import Panda; Panda().flash()" \ No newline at end of file