Files
dragonpilot/btg_mode.sh
T
2020-01-08 15:05:31 +10:00

11 lines
218 B
Bash
Executable File

#!/usr/bin/bash
mode=$1
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