mirror of
https://github.com/cimryan/teslausb.git
synced 2026-03-01 04:30:33 +00:00
Fix the setting of the host name.
This commit is contained in:
@@ -126,10 +126,10 @@ function configure_hostname () {
|
||||
|
||||
local new_host_name="teslausb"
|
||||
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 ~
|
||||
sed 's/raspberrypi/$new_host_name/g' ~/hostname > /etc/hostname
|
||||
sed "s/raspberrypi/$new_host_name/g" ~/hostname > /etc/hostname
|
||||
echo "Configured the hostname."
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user