diff options
Diffstat (limited to 'scripts/runqemu-gen-tapdevs')
| -rw-r--r-- | scripts/runqemu-gen-tapdevs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/runqemu-gen-tapdevs b/scripts/runqemu-gen-tapdevs index f52cf0b9b9..995e1d5204 100644 --- a/scripts/runqemu-gen-tapdevs +++ b/scripts/runqemu-gen-tapdevs | |||
| @@ -2,10 +2,10 @@ | |||
| 2 | # | 2 | # |
| 3 | # Create a "bank" of tap network devices that can be used by the | 3 | # Create a "bank" of tap network devices that can be used by the |
| 4 | # runqemu script. This script needs to be run as root, and will | 4 | # runqemu script. This script needs to be run as root, and will |
| 5 | # use the tunctl binary from a Poky sysroot. Note: many Linux distros | 5 | # use the tunctl binary from the build system sysroot. Note: many Linux |
| 6 | # these days still use an older version of tunctl which does not | 6 | # distros these days still use an older version of tunctl which does not |
| 7 | # support the group permissions option, hence the need to use Poky's | 7 | # support the group permissions option, hence the need to use the build |
| 8 | # version. | 8 | # system provided version. |
| 9 | # | 9 | # |
| 10 | # Copyright (C) 2010 Intel Corp. | 10 | # Copyright (C) 2010 Intel Corp. |
| 11 | # | 11 | # |
| @@ -26,7 +26,7 @@ usage() { | |||
| 26 | echo "Usage: sudo $0 <gid> <num> <native-sysroot-basedir>" | 26 | echo "Usage: sudo $0 <gid> <num> <native-sysroot-basedir>" |
| 27 | echo "Where <gid> is the numeric group id the tap devices will be owned by" | 27 | echo "Where <gid> is the numeric group id the tap devices will be owned by" |
| 28 | echo "<num> is the number of tap devices to create (0 to remove all)" | 28 | echo "<num> is the number of tap devices to create (0 to remove all)" |
| 29 | echo "<native-sysroot-basedir> is the path to Poky's native sysroot" | 29 | echo "<native-sysroot-basedir> is the path to the build system's native sysroot" |
| 30 | exit 1 | 30 | exit 1 |
| 31 | } | 31 | } |
| 32 | 32 | ||
| @@ -82,4 +82,4 @@ done | |||
| 82 | # The runqemu script will check for this file, and if it exists, | 82 | # The runqemu script will check for this file, and if it exists, |
| 83 | # will use the existing bank of tap devices without creating | 83 | # will use the existing bank of tap devices without creating |
| 84 | # additional ones via sudo. | 84 | # additional ones via sudo. |
| 85 | touch /etc/poky-nosudo | 85 | touch /etc/runqemu-nosudo |
