build: fix kmod package build on non-GNU systems

BSD paste requires a filename argument, and it accepts - to use stdin as
intended.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2017-05-29 14:26:36 +02:00
parent d71ffb9639
commit 27da508749
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ define ModuleAutoLoad
}; \ }; \
$(3) \ $(3) \
if [ -n "$$$$$$$$modules" ]; then \ 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)/etc/modules.d; \
mkdir -p $(2)/CONTROL; \ mkdir -p $(2)/CONTROL; \
echo "#!/bin/sh" > $(2)/CONTROL/postinst-pkg; \ echo "#!/bin/sh" > $(2)/CONTROL/postinst-pkg; \