[readonly/geninitrd/cryptrootfs: 4/6] - parsing options.
draenog
draenog at pld-linux.org
Sat Nov 2 19:25:28 CET 2013
commit 1999adc0d84c17cd377efc606b0330e9127c240c
Author: serek <serek at pld-linux.org>
Date: Fri Oct 8 13:36:36 2004 +0000
- parsing options.
svn-id: @4727
geninitrd | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
---
diff --git a/geninitrd b/geninitrd
index 7f2040a..f653f0c 100755
--- a/geninitrd
+++ b/geninitrd
@@ -748,6 +748,38 @@ while [ $# -gt 0 ]; do
LVMTOOLSVERSION="$2"
shift
;;
+ --authtype*)
+ if echo $1 | grep -q '=' ; then
+ AUTHTYPE=`echo $1 | sed 's/^--authtype=//'`
+ else
+ AUTHTYPE=$2
+ shift
+ fi
+ ;;
+ --keydev*)
+ if echo $1 | grep -q '=' ; then
+ KEYDEV=`echo $1 | sed 's/^--keydev=//'`
+ else
+ KEYDEV=$2
+ shift
+ fi
+ ;;
+ --keypath*)
+ if echo $1 | grep -q '=' ; then
+ KEYPATH=`echo $1 | sed 's/^--keypath=//'`
+ else
+ KEYPATH=$2
+ shift
+ fi
+ ;;
+ --keymat-fstype*)
+ if echo $1 | grep -q '=' ; then
+ KEYMAT_FSTYPE=`echo $1 | sed 's/^--keymat-fstype=//'`
+ else
+ KEYMAT_FSTYPE=$2
+ shift
+ fi
+ ;;
--without-udev)
USE_UDEV=
;;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/readonly/geninitrd.git/commitdiff/4124dbdbb787b00cbc1cc14cc05c0a57d5d12625
More information about the pld-cvs-commit
mailing list