kernel: Copy patches from kernel 4.14 to 4.19
[openwrt/staging/chunkeey.git] / target / linux / sunxi / image / gen_sunxi_sdcard_img.sh
index 06957a5aec574848bff74493e0cd264162770d11..bb89e3a0fc6ac14493ce0117c68ec6da0e2fbf8d 100755 (executable)
@@ -1,5 +1,4 @@
 #!/usr/bin/env bash
-
 #
 # Copyright (C) 2013 OpenWrt.org
 #
@@ -7,8 +6,8 @@
 # See /LICENSE for more information.
 #
 
-set -
-[ $# == 6 ] || {
+set -ex
+[ $# -eq 6 ] || {
     echo "SYNTAX: $0 <file> <bootfs image> <rootfs image> <bootfs size> <rootfs size> <u-boot image>"
     exit 1
 }