build: fix kmod package build on non-GNU systems
[openwrt/openwrt.git] / include / kernel.mk
index 301f24be3e06606b6cc6010156acb7bee46194ac..9c01d5f2c8a211ed5a15a7d71d19ee112754f357 100644 (file)
@@ -133,7 +133,7 @@ define ModuleAutoLoad
        }; \
        $(3) \
        if [ -n "$$$$$$$$modules" ]; then \
-               modules="$$$$$$$$(echo "$$$$$$$$modules" | tr ' ' '\n' | sort | uniq | paste -s -d' ')"; \
+               modules="$$$$$$$$(echo "$$$$$$$$modules" | tr ' ' '\n' | sort | uniq | paste -s -d' ' -)"; \
                mkdir -p $(2)/etc/modules.d; \
                mkdir -p $(2)/CONTROL; \
                echo "#!/bin/sh" > $(2)/CONTROL/postinst-pkg; \