add warnings when missing --mmc and --uboot

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/8/head
Robert Nelson 14 years ago
parent 80409a763e
commit 299b178833

@ -31,6 +31,7 @@ unset USB_ROOTFS
unset PRINTK unset PRINTK
SCRIPT_VERSION="1.00" SCRIPT_VERSION="1.00"
IN_VALID_UBOOT=1
MIRROR="http://rcn-ee.net/deb/" MIRROR="http://rcn-ee.net/deb/"
DIST=squeeze DIST=squeeze
@ -837,7 +838,6 @@ function check_mmc {
} }
function check_uboot_type { function check_uboot_type {
IN_VALID_UBOOT=1
unset DO_UBOOT unset DO_UBOOT
case "$UBOOT_TYPE" in case "$UBOOT_TYPE" in
@ -880,7 +880,6 @@ case "$UBOOT_TYPE" in
SERIAL_MODE=1 SERIAL_MODE=1
;; ;;
esac esac
if [ "$IN_VALID_UBOOT" ] ; then if [ "$IN_VALID_UBOOT" ] ; then
@ -1010,6 +1009,12 @@ while [ ! -z "$1" ]; do
done done
if [ ! "${MMC}" ];then if [ ! "${MMC}" ];then
echo "ERROR: --mmc undefined"
usage
fi
if [ "$IN_VALID_UBOOT" ] ; then
echo "ERROR: --uboot undefined"
usage usage
fi fi

Loading…
Cancel
Save