X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/e46aa6fbddf54d8da50a9286826fd38776be221c..82287902c7a6a5a2cc7510cc5e1f520febfa62b9:/scripts/ipkg?ds=sidebyside diff --git a/scripts/ipkg b/scripts/ipkg index 4d3ad8506..97a315142 100755 --- a/scripts/ipkg +++ b/scripts/ipkg @@ -32,6 +32,8 @@ ipkg_is_upgrade () { return 1 } +which md5sum 2>&1 >/dev/null || alias md5sum=md5 + ipkg_srcs() { local srcre="$1" sed -ne "s/^src[[:space:]]\+$srcre[[:space:]]\+//p" < $IPKG_CONF @@ -923,11 +925,7 @@ ipkg_install() { ipkg_install_file $ipkg_filename ;; *.ipk | *.deb) - if [ -f "$pkg" ]; then ipkg_install_file $pkg - else - echo "File not found $pkg" >&2 - fi ;; *) ipkg_get_install $pkg || true