Adding hostname persistence to the auto_hostname.sh script