[Fai-commit] r4077 - trunk/bin

fai-commit at lists.alioth.debian.org fai-commit at lists.alioth.debian.org
Tue Oct 10 21:51:40 UTC 2006


Author: lange
Date: 2006-10-10 21:51:40 +0000 (Tue, 10 Oct 2006)
New Revision: 4077

Modified:
   trunk/bin/make-fai-nfsroot
Log:
add option -h and usage() subroutine


Modified: trunk/bin/make-fai-nfsroot
===================================================================
--- trunk/bin/make-fai-nfsroot	2006-10-10 21:49:51 UTC (rev 4076)
+++ trunk/bin/make-fai-nfsroot	2006-10-10 21:51:40 UTC (rev 4077)
@@ -55,6 +55,7 @@
         f) die "Option -f is not supported any more. Use option -c instead" ;;
         k) kinstall=1 ;;
         K) kremove=1; kinstall=1 ;;
+        h) usage ;;
 	e) expert=1 ;;
         ?) exit 5 ;; # error in option parsing
     esac
@@ -418,6 +419,19 @@
 fi
 }
 # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+usage() {
+
+    cat <<-EOF
+	Copyright (C) 1999-2006 Thomas Lange
+	Report bugs to <fai at informatik.uni-koeln.de>.
+
+	Usage: make-fai-nfsroot [OPTIONS]
+  Create an NFSROOT for FAI.
+	Read the man pages pages make-fai-nfsroot(8).
+EOF
+    exit 0
+}
+# - - - - - - - - - - - - - - - - - - - - - - - - - -
 # main routine
 
 [ -z "$KERNELPACKAGE" ] && die "\$KERNELPACKAGE is not set. Aborting."




More information about the Fai-commit mailing list