Gitiles
Code Review
Sign In
realtimeroboticsgroup.org
/
RealtimeRoboticsGroup
/
test
/
c68b350a87a7be18b5caaada9af1bbde8ec43af9
/
.
/
frc971
/
raspi
/
rootfs
/
enable_imu.sh
blob: 372520725f668e193ff185504b818aea6829519f [
file
] [
log
] [
blame
]
#!/bin/bash
CONFIG
=/
boot
/
config
.
txt
if
grep
-
q adis16505
"${CONFIG}"
;
then
echo
"Already enabled"
exit
0
;
fi
sed
-
i
'1h;1!H;$!d;x;s/.*dtparam=spi[^\n]*/&\n\n# Enable the IMU\ndtoverlay=adis16505/'
"${CONFIG}"
echo
"Enabled 16505"