This is an OSX everyboot script (it runs every time the Mac boots). It is aimed at corporate networks and diagnoses simple faults like a disconnected network cable or DHCP, DNS and AD connection issues.
Any issues that are found will be displayed within the OSX Login Window message.
The script does the following:
Waits (a definable length of time) for the network services to be available
(DHCP, DNS & AD)
Sets the LocalHostName, HostName and ComputerName if neccessary
Sets the login screen message to reflect
HostName
Workstation AD OU path
Network issues (if any)
Sets Remote Desktop computer info fields to show boot timings and AD OU.
...