aboutsummaryrefslogtreecommitdiffstats
path: root/setup-hostname.in
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-11-02 22:02:43 +0100
committerJakub Jirutka <jakub@jirutka.cz>2016-11-02 22:11:19 +0100
commitcb474e20d6ff923a8f338f26b93234411065ffc0 (patch)
tree4e3c16c18adcc9fd7b3b58f45064ec752f47485e /setup-hostname.in
parent9f65b05ba2b0b291f9973228a5c4395508b95b16 (diff)
downloadalpine-conf-cb474e20d6ff923a8f338f26b93234411065ffc0.tar.bz2
alpine-conf-cb474e20d6ff923a8f338f26b93234411065ffc0.tar.xz
fix mixed tabs & spaces and surplus empty lines at EOF
Diffstat (limited to 'setup-hostname.in')
-rw-r--r--setup-hostname.in9
1 files changed, 4 insertions, 5 deletions
diff --git a/setup-hostname.in b/setup-hostname.in
index 20164bd..04420ac 100644
--- a/setup-hostname.in
+++ b/setup-hostname.in
@@ -6,7 +6,7 @@ PREFIX=
. $PREFIX/lib/libalpine.sh
usage() {
- cat <<__EOF__
+ cat <<__EOF__
usage: setup-hostname [-h] [HOSTNAME]
Sets the system hostname.
@@ -16,7 +16,7 @@ options:
Sets hostname to HOSTNAME or prompt if unspecified.
__EOF__
- exit 1
+ exit 1
}
@@ -40,10 +40,10 @@ valid_hostname() {
}
while getopts "hn:" opt; do
- case $opt in
+ case $opt in
h) usage;;
n) name="$OPTARG";;
- esac
+ esac
done
shift $(( $OPTIND - 1 ))
if [ -z "$name" ] && [ $# -eq 1 ]; then
@@ -67,4 +67,3 @@ done
mkdir -p "$ROOT/etc"
echo "$HOST" > "$ROOT/etc/hostname"
-