summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2010-06-18 12:23:37 +0200
committermaximilian attems <maks@debian.org>2010-06-18 12:23:59 +0200
commite967b03f31e784e8a8a6189c5de5d7b0e6b9bb56 (patch)
treecc02098ba11ae312a037ca93efd738a9310b968a
parentd25f6105991a6865eeaa7116c9b518af3160f0b1 (diff)
downloadinitramfs-tools-e967b03f31e784e8a8a6189c5de5d7b0e6b9bb56.tar.gz
initramfs-tools-e967b03f31e784e8a8a6189c5de5d7b0e6b9bb56.zip
mkinitramfs, lsinitramfs: Better error message for non-GNU getopt
Reported-by: Michael Prokop <mika@debian.org> Signed-off-by: maximilian attems <maks@debian.org>
-rwxr-xr-xlsinitramfs2
-rwxr-xr-xmkinitramfs2
2 files changed, 2 insertions, 2 deletions
diff --git a/lsinitramfs b/lsinitramfs
index 3fcc50c..91c65e1 100755
--- a/lsinitramfs
+++ b/lsinitramfs
@@ -16,7 +16,7 @@ cpio_args="--extract --quiet --list"
OPTIONS=`getopt -o hl --long help,long -n "$0" -- "$@"`
# Check for non-GNU getopt
-if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi
+if [ $? != 0 ] ; then echo "W: non-GNU getopt" >&2 ; exit 1 ; fi
eval set -- "$OPTIONS"
diff --git a/mkinitramfs b/mkinitramfs
index 9af5bfd..e49e01c 100755
--- a/mkinitramfs
+++ b/mkinitramfs
@@ -14,7 +14,7 @@ export BUSYBOXDIR
OPTIONS=`getopt -o c:d:ko:r:v -n "$0" -- "$@"`
# Check for non-GNU getopt
-if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi
+if [ $? != 0 ] ; then echo "W: non-GNU getopt" >&2 ; exit 1 ; fi
eval set -- "$OPTIONS"