X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F18hostname;h=430d0a00599a6b5857035f22971bdac59fef2179;hb=a6a9d36d569ca73b14f197dbd5a3e06189884e27;hp=591e4ec04306e56c2b4bb96c9b82e0863e55b659;hpb=292e65d84b99afa4c9240c23e1433b828af80ba3;p=live-boot-grml.git diff --git a/scripts/live-bottom/18hostname b/scripts/live-bottom/18hostname index 591e4ec..430d0a0 100755 --- a/scripts/live-bottom/18hostname +++ b/scripts/live-bottom/18hostname @@ -1,29 +1,35 @@ -#! /bin/sh +#!/bin/sh -PREREQ="" -DESCRIPTION="Setting hostname..." +#set -e -. /scripts/live-functions +# initramfs-tools header + +PREREQ="" prereqs() { - echo "$PREREQ" + echo "${PREREQ}" } -case $1 in -# get pre-requisites -prereqs) - prereqs - exit 0 - ;; +case "${1}" in + prereqs) + prereqs + exit 0 + ;; esac -log_begin_msg "$DESCRIPTION" +# live-initramfs header + +. /scripts/live-functions + +log_begin_msg "Setting hostname..." + +# live-initramfs script -echo "$HOST" > /root/etc/hostname -cat > /root/etc/hosts < /root/etc/hostname +cat >> /root/etc/hosts <