mirror of
https://github.com/cimryan/teslausb.git
synced 2026-03-01 04:30:33 +00:00
let's clean up after ourselves
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user