#!/bin/sh

# Reorder scripts to make sure host name setting can use DNS lookup
dnsinit=/usr/share/ltsp/init-ltsp.d/10-resolv-conf
if [ -e $dnsinit ] ; then
    . $dnsinit
fi

# Update hostname based on DNS or MAC address using our name scheme
HOSTNAME=$(/usr/sbin/update-hostname-from-ip -m -n)
