#!/bin/esh
export-cmd HOSTNAME cat /etc/hostname
echo -n "Setting hostname..." > /dev/pex/splash
if empty? "$HOSTNAME" then exec hostname "localhost" else exec hostname "$HOSTNAME"