vm: add VMNAME entry to /etc/hosts (#384)
This commit is contained in:
parent
0d766a3184
commit
714054738f
@ -24,6 +24,7 @@ start()
|
|||||||
# because it makes some of the pre-created dotfiles invalid (e.g. .kde/cache-<hostname>)
|
# because it makes some of the pre-created dotfiles invalid (e.g. .kde/cache-<hostname>)
|
||||||
# (let's be frank: nobody's gonna use xterm on DispVM)
|
# (let's be frank: nobody's gonna use xterm on DispVM)
|
||||||
hostname $name
|
hostname $name
|
||||||
|
(grep -v "\<$name\>" /etc/hosts; echo "127.0.0.1 $name") > /etc/hosts
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set IP address again (besides action in udev rules); this is needed by
|
# Set IP address again (besides action in udev rules); this is needed by
|
||||||
|
Loading…
Reference in New Issue
Block a user