diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-06-19 15:45:56 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-06-19 15:50:29 +0100 |
| commit | 51063c1e6ac214b4ef43c88c8091c909a7cab2cb (patch) | |
| tree | deeb05d088ee8423276de4d63e3a8fc82a4cb028 /scripts | |
| parent | 7a6620b5eb26169f6899864a1a6542b336d133d0 (diff) | |
| download | poky-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')
| -rwxr-xr-x | scripts/runqemu-ifup | 4 |
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 | ||
| 23 | usage() { | 23 | usage() { |
| 24 | echo "sudo $(basename $0) <uid> <gid> <native-sysroot-basedir>" | 24 | echo "sudo $(basename $0) <uid> <gid>" |
| 25 | } | 25 | } |
| 26 | 26 | ||
| 27 | if [ $EUID -ne 0 ]; then | 27 | if [ $EUID -ne 0 ]; then |
| @@ -29,7 +29,7 @@ if [ $EUID -ne 0 ]; then | |||
| 29 | exit 1 | 29 | exit 1 |
| 30 | fi | 30 | fi |
| 31 | 31 | ||
| 32 | if [ $# -ne 3 ]; then | 32 | if [ $# -ne 2 ]; then |
| 33 | usage | 33 | usage |
| 34 | exit 1 | 34 | exit 1 |
| 35 | fi | 35 | fi |
