[ramips] fix up the rt2880 patches
[openwrt.git] / scripts / ipkg-make-index.sh
index 8ae7eed..cbfa450 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env bash
 set -e
 
 pkg_dir=$1
@@ -11,6 +11,10 @@ fi
 which md5sum >/dev/null 2>&1 || alias md5sum=md5
 
 for pkg in `find $pkg_dir -name '*.ipk' | sort`; do
+       name="${pkg##*/}"
+       name="${name%%_*}"
+       [[ "$name" = "kernel" ]] && continue
+       [[ "$name" = "libc" ]] && continue
        echo "Generating index for package $pkg" >&2
        file_size=$(ls -l $pkg | awk '{print $5}')
        md5sum=$(md5sum $pkg | awk '{print $1}')