X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F18hostname;h=430d0a00599a6b5857035f22971bdac59fef2179;hb=526a7c2e15a71dbaef918007637973c3b61986fa;hp=591e4ec04306e56c2b4bb96c9b82e0863e55b659;hpb=d70b77f919f85511936645abb95d710b80c10c74;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 <