From: Felix Fietkau Date: Mon, 29 May 2017 12:26:36 +0000 (+0200) Subject: build: fix kmod package build on non-GNU systems X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1a341e89a7887eff68fe79cff4b63d0b4772f559;p=openwrt%2Fstaging%2Fldir.git 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 --- diff --git a/include/kernel.mk b/include/kernel.mk index 301f24be3e..9c01d5f2c8 100644 --- a/include/kernel.mk +++ b/include/kernel.mk @@ -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; \