From: Kevin Darbyshire-Bryant Date: Sat, 23 Dec 2017 09:45:37 +0000 (+0000) Subject: update_kernel.sh: improve cross platform support X-Git-Url: http://git.openwrt.org/feed/routing.git%5Ed11075cd40a88602bf4ba2b275f72100ddcb4767?a=commitdiff_plain;h=4dafa7abba77b2c1e9c83cd1c76a13a7c97cc571;p=maintainer-tools.git update_kernel.sh: improve cross platform support Use staging_dir/host for sed. Improves compatibility with MacOS Signed-off-by: Kevin Darbyshire-Bryant --- diff --git a/update_kernel.sh b/update_kernel.sh index 061e6e7..198ca6b 100755 --- a/update_kernel.sh +++ b/update_kernel.sh @@ -155,7 +155,7 @@ if [ "$UPDATE" -eq 1 ]; then CHECKSUM=$(./staging_dir/host/bin/mkhash sha256 dl/linux-$PATCHVER.tar.xz) fi - $CMD sed -i include/kernel-version.mk \ + $CMD ./staging_dir/host/bin/sed -i include/kernel-version.mk \ -e "s|LINUX_VERSION-${KERNEL} =.*|LINUX_VERSION-${KERNEL} = ${NEWVER}|" \ -e "s|LINUX_KERNEL_HASH-${KERNEL}.*|LINUX_KERNEL_HASH-${PATCHVER} = ${CHECKSUM}|" fi