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>
SVN-Revision: 37390

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" }'
                egrep -a '^depends=' | \
                sed -e 's,^depends=,,' -e 's/,/\n/g' | \
                awk '{ print $1 ".ko" }'
-done
+done | sort -u