cleanup package dependicy

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/8/head
Robert Nelson 14 years ago
parent c5be5bba14
commit ed4cb11b09

@ -62,45 +62,34 @@ fi
function detect_software { function detect_software {
#Currently only Ubuntu and Debian..
#Working on Fedora...
unset DEB_PACKAGE
unset RPM_PACKAGE
unset NEEDS_PACKAGE unset NEEDS_PACKAGE
if [ ! $(which mkimage) ];then if [ ! $(which mkimage) ];then
echo "Missing uboot-mkimage" echo "Missing uboot-mkimage"
DEB_PACKAGE="uboot-mkimage "
RPM_PACKAGE="uboot-tools "
NEEDS_PACKAGE=1 NEEDS_PACKAGE=1
fi fi
if [ ! $(which wget) ];then if [ ! $(which wget) ];then
echo "Missing wget" echo "Missing wget"
DEB_PACKAGE+="wget "
RPM_PACKAGE+="wget "
NEEDS_PACKAGE=1 NEEDS_PACKAGE=1
fi fi
if [ ! $(which mkfs.vfat) ];then if [ ! $(which mkfs.vfat) ];then
echo "Missing mkfs.vfat" echo "Missing mkfs.vfat"
DEB_PACKAGE+="dosfstools "
RPM_PACKAGE+="dosfstools "
NEEDS_PACKAGE=1 NEEDS_PACKAGE=1
fi fi
if [ ! $(which parted) ];then if [ ! $(which parted) ];then
echo "Missing parted" echo "Missing parted"
DEB_PACKAGE+="parted "
RPM_PACKAGE+="parted "
NEEDS_PACKAGE=1 NEEDS_PACKAGE=1
fi fi
if [ "${NEEDS_PACKAGE}" ];then if [ "${NEEDS_PACKAGE}" ];then
echo "" echo ""
echo "Please Install Missing Dependencies" echo "Your System is Missing some dependencies"
echo "Ubuntu/Debian: sudo apt-get install $DEB_PACKAGE" echo "Ubuntu/Debian: sudo apt-get install uboot-mkimage wget dosfstools parted"
echo "Fedora: as root: yum install $RPM_PACKAGE" echo "Fedora: as root: yum install uboot-tools wget dosfstools parted"
echo "Gentoo: emerge u-boot-tools wget dosfstools parted"
echo "" echo ""
exit exit
fi fi

Loading…
Cancel
Save