From c1bbc88f87daf1e35e1ce33d98792de269f010f5 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Mon, 20 Jun 2011 10:03:48 -0500 Subject: [PATCH] fedora and gentoo also need dpkg, so check for it Signed-off-by: Robert Nelson --- mk_mmc.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/mk_mmc.sh b/mk_mmc.sh index 9967034..6135386 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -95,12 +95,17 @@ if [ ! $(which parted) ];then NEEDS_PACKAGE=1 fi +if [ ! $(which dpkg) ];then + echo "Missing dpkg" + NEEDS_PACKAGE=1 +fi + if [ "${NEEDS_PACKAGE}" ];then echo "" echo "Your System is Missing some dependencies" echo "Ubuntu/Debian: sudo apt-get install uboot-mkimage wget dosfstools parted" - echo "Fedora: as root: yum install uboot-tools wget dosfstools parted" - echo "Gentoo: emerge u-boot-tools wget dosfstools parted" + echo "Fedora: as root: yum install uboot-tools wget dosfstools parted dpkg" + echo "Gentoo: emerge u-boot-tools wget dosfstools parted dpkg" echo "" exit fi