X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/e46aa6fbddf54d8da50a9286826fd38776be221c..15230af45d228f8311beb6f5216620cbe794a0c9:/scripts/ipkg 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