aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@gmail.com>2009-10-14 08:11:04 +0100
committerMarty Connor <mdc@etherboot.org>2009-10-15 14:54:30 -0400
commit0ea6e5c221a463ef5d62e00703e0d5595cc4d169 (patch)
tree38b5535bebe69582233b90d0a171730e3fb51a84 /src
parentb0b0b8f65c478c3b7f17064c7916db7873b33248 (diff)
downloadipxe-0ea6e5c221a463ef5d62e00703e0d5595cc4d169.tar.gz
[util] Make mtools check detect new versions
The mtools version check does not handle GNU mtools 4.0.10. This commit makes the pattern more general so it matches older mtools as well as the newer "mtools (GNU mtools) 4.0.10" string. Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com> Signed-off-by: Marty Connor <mdc@etherboot.org>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/util/genliso2
-rw-r--r--src/util/gensdsk2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/util/genliso b/src/util/genliso
index aa517852..1f1c1168 100755
--- a/src/util/genliso
+++ b/src/util/genliso
@@ -15,7 +15,7 @@ case $# in
esac
case "`mtools -V`" in
-Mtools\ version\ 3.9.9*|Mtools\ version\ 3.9.1[0-9]*|Mtools\ version\ 4.*)
+Mtools\ version\ 3.9.9*|Mtools\ version\ 3.9.1[0-9]*|[mM]tools\ *\ [4-9].*)
;;
*)
echo Mtools version 3.9.9 or later is required
diff --git a/src/util/gensdsk b/src/util/gensdsk
index 787dfa25..a8661586 100644
--- a/src/util/gensdsk
+++ b/src/util/gensdsk
@@ -15,7 +15,7 @@ case $# in
;;
esac
case "`mtools -V`" in
-Mtools\ version\ 3.9.9*|Mtools\ version\ 3.9.1[0-9]*|Mtools\ version\ 4.*)
+Mtools\ version\ 3.9.9*|Mtools\ version\ 3.9.1[0-9]*|[mM]tools\ *\ [4-9].*)
;;
*)
echo Mtools version 3.9.9 or later is required