]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
scripts/runqemu-ifup: Fix extra parameter issue
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 19 Jun 2023 14:45:56 +0000 (15:45 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 19 Jun 2023 14:45:58 +0000 (15:45 +0100)
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 <richard.purdie@linuxfoundation.org>
scripts/runqemu-ifup

index bbd624596ed9b450b9c886f97c152b718c678127..e3aa16c97df42e996367ba5b9142e9b297b6db76 100755 (executable)
@@ -21,7 +21,7 @@
 #
 
 usage() {
-       echo "sudo $(basename $0) <uid> <gid> <native-sysroot-basedir>"
+       echo "sudo $(basename $0) <uid> <gid>"
 }
 
 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