X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F05-hostname;fp=etc%2Fgrml%2Ffai%2Fconfig%2Fscripts%2FGRMLBASE%2F05-hostname;h=f38d2fd14da9afe031c2c5d8383fe1a60903cc61;hb=e08881cde5d29236a5992a0a501b43e88d66732d;hp=0000000000000000000000000000000000000000;hpb=848aacd341724969418da66ab72948a3d0bb42f2;p=grml-live.git diff --git a/etc/grml/fai/config/scripts/GRMLBASE/05-hostname b/etc/grml/fai/config/scripts/GRMLBASE/05-hostname new file mode 100755 index 0000000..f38d2fd --- /dev/null +++ b/etc/grml/fai/config/scripts/GRMLBASE/05-hostname @@ -0,0 +1,19 @@ +#!/bin/sh +# Filename: /etc/grml/fai/config/scripts/GRML/05-hostname +# Purpose: set hostname of live-system +# Authors: grml-team (grml.org), (c) Michael Prokop +# Bug-Reports: see http://grml.org/bugs/ +# License: This file is licensed under the GPL v2 or any later version. +# Latest change: Sun Sep 16 22:55:31 CEST 2007 [mika] +################################################################################ + +set -u +set -e + +HOSTNAME='' +[ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf +[ -n "$HOSTNAME" ] || HOSTNAME=grml +echo "$HOSTNAME" > $target/etc/hostname + +## END OF FILE ################################################################# +# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=3