Fix the setting of the host name.

This commit is contained in:
cimryan
2018-10-14 20:47:32 -07:00
parent c1e840fa9f
commit fc2a436c7e

View File

@@ -126,10 +126,10 @@ function configure_hostname () {
local new_host_name="teslausb" local new_host_name="teslausb"
cp /etc/hosts ~ cp /etc/hosts ~
sed 's/raspberrypi/$new_host_name/g' ~/hosts > /etc/hosts sed "s/raspberrypi/$new_host_name/g" ~/hosts > /etc/hosts
cp /etc/hostname ~ cp /etc/hostname ~
sed 's/raspberrypi/$new_host_name/g' ~/hostname > /etc/hostname sed "s/raspberrypi/$new_host_name/g" ~/hostname > /etc/hostname
echo "Configured the hostname." echo "Configured the hostname."
} }