Files
dragonpilot/scripts/disable_relay.sh
2021-07-02 12:49:43 +08:00

10 lines
238 B
Bash
Executable File

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