From ed4cb11b094824a2a051aec1baa9e3a79c42407e Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Thu, 10 Mar 2011 09:31:07 -0600 Subject: [PATCH] cleanup package dependicy Signed-off-by: Robert Nelson --- mk_mmc.sh | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/mk_mmc.sh b/mk_mmc.sh index 1f2b627..f67c4d7 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -62,45 +62,34 @@ fi function detect_software { -#Currently only Ubuntu and Debian.. -#Working on Fedora... -unset DEB_PACKAGE -unset RPM_PACKAGE unset NEEDS_PACKAGE if [ ! $(which mkimage) ];then echo "Missing uboot-mkimage" - DEB_PACKAGE="uboot-mkimage " - RPM_PACKAGE="uboot-tools " NEEDS_PACKAGE=1 fi if [ ! $(which wget) ];then echo "Missing wget" - DEB_PACKAGE+="wget " - RPM_PACKAGE+="wget " NEEDS_PACKAGE=1 fi if [ ! $(which mkfs.vfat) ];then echo "Missing mkfs.vfat" - DEB_PACKAGE+="dosfstools " - RPM_PACKAGE+="dosfstools " NEEDS_PACKAGE=1 fi if [ ! $(which parted) ];then echo "Missing parted" - DEB_PACKAGE+="parted " - RPM_PACKAGE+="parted " NEEDS_PACKAGE=1 fi if [ "${NEEDS_PACKAGE}" ];then echo "" - echo "Please Install Missing Dependencies" - echo "Ubuntu/Debian: sudo apt-get install $DEB_PACKAGE" - echo "Fedora: as root: yum install $RPM_PACKAGE" + 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 "" exit fi