diff options
Diffstat (limited to 'patchroot.sh')
-rw-r--r-- | patchroot.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/patchroot.sh b/patchroot.sh index 8bd3269..2345f77 100644 --- a/patchroot.sh +++ b/patchroot.sh | |||
@@ -1,5 +1,7 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | echo samizdat > /etc/hostname | 2 | hostname=adam |
3 | echo $hostname > /etc/hostname | ||
4 | sed -i -e 's/\blocalhost\b/& '"$hostname"'/' /etc/hosts | ||
3 | 5 | ||
4 | . /etc/os-release | 6 | . /etc/os-release |
5 | 7 | ||