From: Richard Purdie Date: Mon, 19 Jun 2023 14:45:56 +0000 (+0100) Subject: scripts/runqemu-ifup: Fix extra parameter issue X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~583 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5d4818e836747a83f55bad8a00a9d3cd6e80c5dc;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git scripts/runqemu-ifup: Fix extra parameter issue The third parameter was dropped in a previous commit but changes were not made to the argument checks. Fix this. Signed-off-by: Richard Purdie --- diff --git a/scripts/runqemu-ifup b/scripts/runqemu-ifup index bbd624596ed..e3aa16c97df 100755 --- a/scripts/runqemu-ifup +++ b/scripts/runqemu-ifup @@ -21,7 +21,7 @@ # usage() { - echo "sudo $(basename $0) " + echo "sudo $(basename $0) " } if [ $EUID -ne 0 ]; then @@ -29,7 +29,7 @@ if [ $EUID -ne 0 ]; then exit 1 fi -if [ $# -ne 3 ]; then +if [ $# -ne 2 ]; then usage exit 1 fi