summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu-ifup
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-06-19 15:45:56 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-06-19 15:50:29 +0100
commit51063c1e6ac214b4ef43c88c8091c909a7cab2cb (patch)
treedeeb05d088ee8423276de4d63e3a8fc82a4cb028 /scripts/runqemu-ifup
parent7a6620b5eb26169f6899864a1a6542b336d133d0 (diff)
downloadpoky-51063c1e6ac214b4ef43c88c8091c909a7cab2cb.tar.gz
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 <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu-ifup')
-rwxr-xr-xscripts/runqemu-ifup4
1 files changed, 2 insertions, 2 deletions
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 @@
21# 21#
22 22
23usage() { 23usage() {
24 echo "sudo $(basename $0) <uid> <gid> <native-sysroot-basedir>" 24 echo "sudo $(basename $0) <uid> <gid>"
25} 25}
26 26
27if [ $EUID -ne 0 ]; then 27if [ $EUID -ne 0 ]; then
@@ -29,7 +29,7 @@ if [ $EUID -ne 0 ]; then
29 exit 1 29 exit 1
30fi 30fi
31 31
32if [ $# -ne 3 ]; then 32if [ $# -ne 2 ]; then
33 usage 33 usage
34 exit 1 34 exit 1
35fi 35fi