#!/usr/bin/env bash
-
#
# Copyright (C) 2013 OpenWrt.org
#
# See /LICENSE for more information.
#
-set -x
-[ $# == 6 ] || {
+set -ex
+[ $# -eq 6 ] || {
echo "SYNTAX: $0 <file> <bootfs image> <rootfs image> <bootfs size> <rootfs size> <u-boot image>"
exit 1
}