summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-07-25 10:23:19 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-07-25 10:23:19 (EDT)
commit196b03c90c2fc245d1b98356fa867ede7ab6e96f (patch)
tree70da4d3961d0f88611197ba0ee6972054f8dd53c
parent88dca7cd7eb70e0286b6aaabb4a606ec691ca2a1 (diff)
installers/pc: Prompt for and set hostname
-rw-r--r--installers/data/pc.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/installers/data/pc.sh b/installers/data/pc.sh
index 1ec3e62..0818437 100644
--- a/installers/data/pc.sh
+++ b/installers/data/pc.sh
@@ -47,6 +47,9 @@ _select()
printf '\nConfigure the network'
printf '\n=====================\n\n'
+printf 'Hostname: '
+_read -r hostname
+printf '%s\n' "${hostname}" >/etc/hostname
printf 'Network configuration method:\n'
_select 'Static' 'DHCP'
if [ "x${select_result}" = 'xStatic' ]; then