let's clean up after ourselves

This commit is contained in:
Ray Tanaka
2018-10-31 03:27:26 -07:00
parent 9687859297
commit 0d682af4bf

View File

@@ -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
}