Rename laptop to logger
Now that we have a logger pi, let's use it!
Change-Id: I8dae48b3a06627e6a98f6dd476c2ff47013ea41f
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/y2020/vision/rootfs/change_hostname.sh b/y2020/vision/rootfs/change_hostname.sh
index f36c439..c9b0b35 100755
--- a/y2020/vision/rootfs/change_hostname.sh
+++ b/y2020/vision/rootfs/change_hostname.sh
@@ -38,9 +38,9 @@
echo -e "${IP_BASE}.2\troborio" >> /etc/hosts
fi
-if grep '^10\.[0-9]*\.[0-9]*\.13\s*laptop$' /etc/hosts >/dev/null;
+if grep '^10\.[0-9]*\.[0-9]*\.13\s*logger$' /etc/hosts >/dev/null;
then
- sed -i "s/^10\.[0-9]*\.[0-9]*\(\.13\s*laptop\)$/${IP_BASE}\1/" /etc/hosts
+ sed -i "s/^10\.[0-9]*\.[0-9]*\(\.13\s*logger\)$/${IP_BASE}\1/" /etc/hosts
else
- echo -e "${IP_BASE}.13\tlaptop" >> /etc/hosts
+ echo -e "${IP_BASE}.13\tlogger" >> /etc/hosts
fi