use bsd md5 in ipkg if md5sum is not available
authorFelix Fietkau <nbd@openwrt.org>
Tue, 10 Oct 2006 22:38:45 +0000 (22:38 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 10 Oct 2006 22:38:45 +0000 (22:38 +0000)
SVN-Revision: 5045

openwrt/scripts/ipkg

index 57e4457cc5a5a08bcd1b804b78c4aaf5fabd7f25..97a315142574a6951331289bc1a09d2710ed5e63 100755 (executable)
@@ -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