aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-10-10 22:38:45 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-10-10 22:38:45 +0000
commitb0ccfcae51b30279f589c3d647ce8d5cbadc0cf6 (patch)
tree8ad3e8dc29e52f8a7e22b160a5621383012e8cab /scripts
parent4e7d3fe8d9cbe0fe7d0e58c17bce8e13a58f3754 (diff)
downloadupstream-b0ccfcae51b30279f589c3d647ce8d5cbadc0cf6.tar.gz
upstream-b0ccfcae51b30279f589c3d647ce8d5cbadc0cf6.tar.bz2
upstream-b0ccfcae51b30279f589c3d647ce8d5cbadc0cf6.zip
use bsd md5 in ipkg if md5sum is not available
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@5045 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ipkg2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/ipkg b/scripts/ipkg
index 57e4457cc5..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