gen-dependencies.sh: sort kmod dependencies
authorFelix Fietkau <nbd@openwrt.org>
Thu, 18 Jul 2013 11:57:36 +0000 (11:57 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 18 Jul 2013 11:57:36 +0000 (11:57 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37390 3c298f89-4303-0410-b956-a3cf2f4a3e73

scripts/gen-dependencies.sh

index f324ba6..53c80cd 100755 (executable)
@@ -31,4 +31,4 @@ for kmod in `find $TARGETS -type f -name \*.ko`; do
                egrep -a '^depends=' | \
                sed -e 's,^depends=,,' -e 's/,/\n/g' | \
                awk '{ print $1 ".ko" }'
-done
+done | sort -u