diff options
Diffstat (limited to 'setup-hostname.in')
-rwxr-xr-x | setup-hostname.in | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/setup-hostname.in b/setup-hostname.in new file mode 100755 index 0000000..b1c2379 --- /dev/null +++ b/setup-hostname.in @@ -0,0 +1,14 @@ +#!/bin/sh + +PROGRAM=setup-hostname +PREFIX= + +. $PREFIX/lib/libalpine.sh + +HOST=`hostname` +echon "Enter system hostname (short form, e.g. 'foo') [$HOST]: " +default_read HOST `hostname` + +mkdir -p "$ROOT/etc" +echo "$HOST" > "$ROOT/etc/hostname" + |