From 0d682af4bfa54052f62800d38da7884989974b25 Mon Sep 17 00:00:00 2001 From: Ray Tanaka Date: Wed, 31 Oct 2018 03:27:26 -0700 Subject: [PATCH] let's clean up after ourselves --- setup/pi/setup-teslausb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup/pi/setup-teslausb b/setup/pi/setup-teslausb index 23de664..460e8f2 100644 --- a/setup/pi/setup-teslausb +++ b/setup/pi/setup-teslausb @@ -172,10 +172,12 @@ function configure_hostname () { local new_host_name="teslausb" cp /etc/hosts ~ sed "s/raspberrypi/$new_host_name/g" ~/hosts > /etc/hosts + rm ~/hosts cp /etc/hostname ~ sed "s/raspberrypi/$new_host_name/g" ~/hostname > /etc/hostname setup_progress "Configured the hostname." + rm ~/hostname fi }