Skip to content

Commit

Permalink
let's clean up after ourselves
Browse files Browse the repository at this point in the history
  • Loading branch information
rtanaka committed Oct 31, 2018
1 parent 9687859 commit 0d682af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setup/pi/setup-teslausb
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 0d682af

Please sign in to comment.