While parsing the command line options, we check to see if the number of options is sane. On most architectures, this is either three or four options; except of course, powerpc has to be all different, and passes in a fifth argument, because it is "special". We now ignore the fifth argument, and do not flag is as an error, which it would be for any arch apart from powerpc
Signed-Off-By: Manoj Srivastava <[email protected]> --- installkernel | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/installkernel b/installkernel index aec104e..ba83092 100644 --- a/installkernel +++ b/installkernel @@ -14,12 +14,15 @@ set -e -# Parse the command line options -if [ $# -eq 3 ] || [ $# -eq 4 ] ; then +# Parse the command line options. Of course, powerpc has to be all +# different, and passes in a fifth argument, just because it is +# "special". We ignore the fifth argument, and do not flag is as an +# error, which it would be for any arch apart from powerpc +if [ $# -eq 3 ] || [ $# -eq 4 ] || [ $# -eq 5 ] ; then img="$2" map="$3" ver="$1" - if [ $# -eq 4 ] && [ -n "$4" ] ; then + if [ $# -ge 4 ] && [ -n "$4" ] ; then dir="$4" else dir="/boot" -- 1.6.2.1 -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

