summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mk-images4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/mk-images b/scripts/mk-images
index 073bf7386..14ab64eaa 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -318,6 +318,10 @@ makemoduleball() {
# create the modules.usbmap
$TRIMUSBMAP $(find . -name *.ko -exec basename {} \;) < $USBMAPS > ../modules.usbmap
+ # remove a zero-byte modules.usbmap
+ if [ "$(ls -s ../modules.usbmap |cut -f 1 -d ' ')" = "0" ]; then
+ rm -f ../modules.usbmap
+ fi
if [ -n "$MMB_DD" ]; then
echo $MMB_DD > $MMB_DIR/rhdd