Integrate feedback from Thomas Lange (thanks for the review!)
[grml-live.git] / etc / grml / fai / config / scripts / GRML / 05-hostname
1 #!/bin/sh
2 set -u
3 set -e
4
5 HOSTNAME=''
6 [ -r /etc/grml/grml-live.conf ] && . /etc/grml/grml-live.conf
7 [ -n "$HOSTNAME" ] || HOSTNAME=grml
8
9 echo "$HOSTNAME" > $target/etc/hostname