Create /home/pi/bin directory and updating some calibration files
Fixed problem with changing team number for imu line in /etc/hosts
Things that are coming up during pi bringup / testing
Change-Id: Id455a2daf86191f0d14243b81239f5f38f45c1c7
Signed-off-by: Jim Ostrowski <yimmy13@gmail.com>
diff --git a/frc971/raspi/rootfs/change_hostname.sh b/frc971/raspi/rootfs/change_hostname.sh
index f555048..20ff635 100755
--- a/frc971/raspi/rootfs/change_hostname.sh
+++ b/frc971/raspi/rootfs/change_hostname.sh
@@ -52,7 +52,7 @@
# Put corret team number in imu's address, or add it if missing
if grep '^10\.[0-9]*\.[0-9]*\.105\s.*\s*imu$' /etc/hosts >/dev/null;
then
- sed -i "s/^10\.[0-9]*\.[0-9]*\(\.105\s.*imu\)$/${IP_BASE}\1/" /etc/hosts
+ sed -i "s/^10\.[0-9]*\.[0-9]*\(\.[0-9]*\s*pi-\)[0-9]*\(-[0-9] pi5 imu\)$/${IP_BASE}\1${TEAM_NUMBER}\2/" /etc/hosts
else
if grep '^10\.[0-9]*\.[0-9]*\.105\s*pi-[0-9]*-[0-9]*\s*pi5$' /etc/hosts
then
diff --git a/frc971/raspi/rootfs/target_configure.sh b/frc971/raspi/rootfs/target_configure.sh
index 388d291..06f481b 100755
--- a/frc971/raspi/rootfs/target_configure.sh
+++ b/frc971/raspi/rootfs/target_configure.sh
@@ -3,6 +3,7 @@
set -ex
mkdir -p /root/bin
+mkdir -p /home/pi/bin
# Give it a static IP
cp /tmp/dhcpcd.conf /etc/