]> arthur.barton.de Git - usertools.macosx.git/blobdiff - useradd.macosx.sh
Add GNU General Public License text and pointers
[usertools.macosx.git] / useradd.macosx.sh
index 1081c796905a41261e063460dac3afd101f8b33f..01a6b4a9ae93f0e6599b5978c22e23409ef1571b 100755 (executable)
@@ -3,8 +3,14 @@
 # useradd.macosx
 # Copyright (c)2008,2009 Barton IT-Consulting, Alexander Barton
 #
 # useradd.macosx
 # 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.
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+# or FITNESS FOR A PARTICULAR PURPOSE.
+# See the GNU General Public License for more details.
 #
 
 NAME=`basename $0`
 #
 
 NAME=`basename $0`
@@ -43,8 +49,8 @@ sw_vers -productName 2>/dev/null | grep "Mac OS X" >/dev/null 2>&1
 [ $? -eq 0 ] || Abort "This script requires Mac OS X!"
 epoch=`sw_vers -productVersion | cut -d'.' -f1`
 major=`sw_vers -productVersion | cut -d'.' -f2`
 [ $? -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
 fi
 
 # Defaults