Whitespace/style cleanups
[ext/instance-debootstrap.git] / examples / hooks / hosts
1 #!/bin/sh
2 #
3 # This is an example script that sets the hostname and hosts file.
4
5 VMFQDN=$INSTANCE_NAME
6 VMHOSTNAME=${VMFQDN%%.*}
7
8 [ x$VMFQDN -eq x$VMHOSTNAME ] && VMFQDN=""
9
10 echo "127.0.1.1         $VMFQDN $VMHOSTNAME" >> $TARGET/etc/host