KERNEL=
PATCHVER=
-while [ $# > 0 ]; do
+while [ $# -gt 0 ]; do
case $1 in
-b|--build)
BUILD=1
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