[Fai-commit] r4718 - trunk/bin
lange at alioth.debian.org
lange at alioth.debian.org
Sun Nov 11 13:13:20 UTC 2007
Author: lange
Date: 2007-11-11 13:13:20 +0000 (Sun, 11 Nov 2007)
New Revision: 4718
Modified:
trunk/bin/fai-setup
Log:
add option -C (closes: #388157)
Modified: trunk/bin/fai-setup
===================================================================
--- trunk/bin/fai-setup 2007-11-11 13:01:07 UTC (rev 4717)
+++ trunk/bin/fai-setup 2007-11-11 13:13:20 UTC (rev 4718)
@@ -30,15 +30,23 @@
PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
set -e
-. /etc/fai/fai.conf
-. /etc/fai/make-fai-nfsroot.conf
+cfdir=/etc/fai
+
options=$@ # all options are also passed to make-fai-nfsroot
-# look for option -e (expert mode)
-case "$options" in
- *-e*) expert=1 ;;
-esac
+while getopts ervC:f:kKV: opt ; do
+ case "$opt" in
+ C) cfdir=$OPTARG ;;
+ v) verbose=1 ; v=-v ;;
+ e) expert=1 ;;
+ esac
+done
+
+
+. $cfdir/fai.conf
+. $cfdir/make-fai-nfsroot.conf
+
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
add_export_line() {
More information about the Fai-commit
mailing list