use bsd md5 in ipkg if md5sum is not available

SVN-Revision: 5045
This commit is contained in:
Felix Fietkau 2006-10-10 22:38:45 +00:00
parent 8d25689f5a
commit 18ec5cc6ce

View file

@ -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