mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-19 10:03:57 +08:00
======================== * Based on latest openpilot 0.7.7 devel. * When Manager failed, display IP address. (Thanks to @dingliangxue) * Re-added sr learner toggle. * Re-added Accel Profile toggle. * Added Toyota to override lowerest cruise speed. (Thanks to @Mojo) * Added BSM indicator to UI. (Thanks to @wabes) * re-added Slow On Curve functionality. (Thanks to @Mojo)
19 lines
694 B
Bash
Executable File
19 lines
694 B
Bash
Executable File
#!/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:/data/data/com.termux/files/usr/bin/git
|
|
export PYTHONPATH=/data/openpilot
|
|
echo -n 1 > /data/params/d/dp_is_updating
|
|
if [ $1 -eq 1 ]; then
|
|
printf %s "1" > /data/params/d/dp_atl
|
|
printf %s "0" > /data/params/d/dp_uploader
|
|
fi
|
|
if [ $1 -eq 0 ]; then
|
|
printf %s "0" > /data/params/d/dp_atl
|
|
cd /data/openpilot || exit
|
|
git reset --hard @{u}
|
|
git clean -xdf
|
|
fi
|
|
reboot
|