Files
dragonpilot/scripts/disable_relay.sh
Rick Lan 1095df55ac dragonpilot 0.7.7.0
========================
* 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)
2020-07-24 14:59:45 +10:00

10 lines
224 B
Bash
Executable File

#!/usr/bin/bash
if [ $1 -eq 1 ]; then
printf %s "1" > /data/params/d/dp_disable_relay
fi
if [ $1 -eq 0 ]; then
printf %s "0" > /data/params/d/dp_disable_relay
fi
rm -rf /data/openpilot/selfdrive/boardd/boardd && reboot