SVN: geninitrd/trunk/geninitrd
glen
glen at pld-linux.org
Fri Aug 19 21:39:24 CEST 2011
Author: glen
Date: Fri Aug 19 21:39:24 2011
New Revision: 12326
Modified:
geninitrd/trunk/geninitrd
Log:
Do not send usage() to stderr, let it be useful for grep(1)-ing or less(1)-ing
Modified: geninitrd/trunk/geninitrd
==============================================================================
--- geninitrd/trunk/geninitrd (original)
+++ geninitrd/trunk/geninitrd Fri Aug 19 21:39:24 2011
@@ -67,7 +67,6 @@
kver=${kdir##*/}
echo " $0 -f --initrdfs=rom /boot/initrd-$kver.gz $kver $verbose"
done
- exit 0
}
msg() {
@@ -1053,7 +1052,7 @@
elif [ -z "$kernel" ]; then
kernel="$1"
else
- usage >&2
+ usage
exit 1
fi
;;
@@ -1063,7 +1062,7 @@
done
if [ -z "$target" -o -z "$kernel" ]; then
- usage >&2
+ usage
exit 1
fi
More information about the pld-cvs-commit
mailing list