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 f324ba6c44172fbe7be66c2619189175b2a4325e..53c80cd837146353ac634da79be8b9ffb69c15ff 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