[ -n "$home_dir" ] || home_dir="/Users/$user_name"
[ -n "$shell" ] || shell="/bin/bash"
+[ "$UID" -eq 0 ] || Abort "This script must be run as root!"
+
# Check that directory services are running
launchctl list 2>/dev/null | fgrep "com.apple.DirectoryServices" >/dev/null 2>&1
if [ $? -ne 0 ]; then
echo "User '$user_name' ($user_id) has been created."
exit 0
-# -eof-
\ No newline at end of file
+# -eof-