X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=scripts%2Fipkg;h=97a315142574a6951331289bc1a09d2710ed5e63;hb=4c859c64689eb5978496f04a2502df11650dbe33;hp=4d3ad850651aeed6abd4e82697061048a1d878f7;hpb=e46aa6fbddf54d8da50a9286826fd38776be221c;p=openwrt.git diff --git a/scripts/ipkg b/scripts/ipkg index 4d3ad85065..97a3151425 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