Files
dragonpilot/scripts/btg_mode.sh
T
2020-05-13 23:45:27 +10:00

10 lines
210 B
Bash
Executable File

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