scripts/gen-dependencies.sh: prevent zero-length dep.* files from accumulating in...
authorFelix Fietkau <nbd@openwrt.org>
Tue, 19 Nov 2013 00:03:34 +0000 (00:03 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 19 Nov 2013 00:03:34 +0000 (00:03 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 38860

scripts/gen-dependencies.sh

index 889255a16731807cc7ad8bee8e7478b8dbb24db4..85962e74b2a24b9d8583cb7a0de5fdb2fb078d58 100755 (executable)
@@ -31,5 +31,5 @@ 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" }'
-       rm -f $tmp
 done | sort -u
+rm -f $tmp