X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F18hostname;h=430d0a00599a6b5857035f22971bdac59fef2179;hb=a6a9d36d569ca73b14f197dbd5a3e06189884e27;hp=3a54e87b484b1c4d611205f1cd5b2a40b6ad3796;hpb=ea5ccacffb14572b4800d14fc9eea23cad7ca893;p=live-boot-grml.git diff --git a/scripts/live-bottom/18hostname b/scripts/live-bottom/18hostname index 3a54e87..430d0a0 100755 --- a/scripts/live-bottom/18hostname +++ b/scripts/live-bottom/18hostname @@ -1,27 +1,33 @@ -#! /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 "$HOSTNAME" > /root/etc/hostname -cat > /root/etc/hosts <> /root/etc/hosts <