#!/bin/bash
#
# useradd.macosx
-# Copyright (c)2008 Barton IT-Consulting, Alexander Barton
+# Copyright (c)2008,2009 Barton IT-Consulting, Alexander Barton
+#
+# This is free software; see the source for copying conditions. There is NO
+# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
NAME=`basename $0`
-RELEASE="2"
+RELEASE="3"
Abort() {
[ $# -lt 1 ] \
}
Usage() {
echo "$NAME (useradd.macosx.sh) release $RELEASE"
- echo "Copyright (c)2008 Barton IT-Consulting, Alexander Barton (alex@barton-it.de)"
+ echo "Copyright (c)2008,2009 Barton IT-Consulting, Alex Barton (alex@barton-it.de)"
echo
echo "This is free software; see the source for copying conditions. There is NO"
echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
[ $? -eq 0 ] || Abort "This script requires Mac OS X!"
epoch=`sw_vers -productVersion | cut -d'.' -f1`
major=`sw_vers -productVersion | cut -d'.' -f2`
-if [ $epoch -ne 10 -o $major -ne 5 ]; then
- Abort "This script requires Mac OS X 10.5.x Leopard!"
+if [ $epoch -ne 10 -o $major -lt 5 -o $major -gt 6 ]; then
+ Abort "This script requires Mac OS X 10.5.x or 10.6.x!"
fi
# Defaults