From 51063c1e6ac214b4ef43c88c8091c909a7cab2cb Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 19 Jun 2023 15:45:56 +0100 Subject: 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. (From OE-Core rev: 5d4818e836747a83f55bad8a00a9d3cd6e80c5dc) Signed-off-by: Richard Purdie --- scripts/runqemu-ifup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/runqemu-ifup') diff --git a/scripts/runqemu-ifup b/scripts/runqemu-ifup index bbd624596e..e3aa16c97d 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 -- cgit v1.2.3-54-g00ecf