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 57e4457..97a3151 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