diff options
-rwxr-xr-x | scripts/runqemu | 4 | ||||
-rwxr-xr-x | scripts/runqemu-ifdown | 6 | ||||
-rwxr-xr-x | scripts/runqemu-ifup | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index 6cdedd8d7e..3744c67409 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
@@ -920,7 +920,7 @@ class BaseConfig(object): | |||
920 | gid = os.getgid() | 920 | gid = os.getgid() |
921 | uid = os.getuid() | 921 | uid = os.getuid() |
922 | logger.info("Setting up tap interface under sudo") | 922 | logger.info("Setting up tap interface under sudo") |
923 | cmd = 'sudo %s %s %s %s' % (self.qemuifup, uid, gid, self.get('STAGING_DIR_NATIVE')) | 923 | cmd = 'sudo %s %s %s %s' % (self.qemuifup, uid, gid, self.bindir_native) |
924 | tap = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE).stdout.read().decode('utf-8').rstrip('\n') | 924 | tap = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE).stdout.read().decode('utf-8').rstrip('\n') |
925 | lockfile = os.path.join(lockdir, tap) | 925 | lockfile = os.path.join(lockdir, tap) |
926 | self.lock = lockfile + '.lock' | 926 | self.lock = lockfile + '.lock' |
@@ -1140,7 +1140,7 @@ class BaseConfig(object): | |||
1140 | 1140 | ||
1141 | def cleanup(self): | 1141 | def cleanup(self): |
1142 | if self.cleantap: | 1142 | if self.cleantap: |
1143 | cmd = 'sudo %s %s %s' % (self.qemuifdown, self.tap, self.get('STAGING_DIR_NATIVE')) | 1143 | cmd = 'sudo %s %s %s' % (self.qemuifdown, self.tap, self.bindir_native) |
1144 | logger.info('Running %s' % cmd) | 1144 | logger.info('Running %s' % cmd) |
1145 | subprocess.call(cmd, shell=True) | 1145 | subprocess.call(cmd, shell=True) |
1146 | if self.lock_descriptor: | 1146 | if self.lock_descriptor: |
diff --git a/scripts/runqemu-ifdown b/scripts/runqemu-ifdown index 8f66cfa2a9..ffbc9de442 100755 --- a/scripts/runqemu-ifdown +++ b/scripts/runqemu-ifdown | |||
@@ -41,11 +41,11 @@ if [ $# -ne 2 ]; then | |||
41 | fi | 41 | fi |
42 | 42 | ||
43 | TAP=$1 | 43 | TAP=$1 |
44 | NATIVE_SYSROOT_DIR=$2 | 44 | STAGING_BINDIR_NATIVE=$2 |
45 | 45 | ||
46 | TUNCTL=$NATIVE_SYSROOT_DIR/usr/bin/tunctl | 46 | TUNCTL=$STAGING_BINDIR_NATIVE/tunctl |
47 | if [ ! -e "$TUNCTL" ]; then | 47 | if [ ! -e "$TUNCTL" ]; then |
48 | echo "Error: Unable to find tunctl binary in '$NATIVE_SYSROOT_DIR/usr/bin', please bitbake qemu-helper-native" | 48 | echo "Error: Unable to find tunctl binary in '$STAGING_BINDIR_NATIVE', please bitbake qemu-helper-native" |
49 | exit 1 | 49 | exit 1 |
50 | fi | 50 | fi |
51 | 51 | ||
diff --git a/scripts/runqemu-ifup b/scripts/runqemu-ifup index d9bd894123..59a15eaa2e 100755 --- a/scripts/runqemu-ifup +++ b/scripts/runqemu-ifup | |||
@@ -49,11 +49,11 @@ fi | |||
49 | 49 | ||
50 | USERID="-u $1" | 50 | USERID="-u $1" |
51 | GROUP="-g $2" | 51 | GROUP="-g $2" |
52 | NATIVE_SYSROOT_DIR=$3 | 52 | STAGING_BINDIR_NATIVE=$3 |
53 | 53 | ||
54 | TUNCTL=$NATIVE_SYSROOT_DIR/usr/bin/tunctl | 54 | TUNCTL=$STAGING_BINDIR_NATIVE/tunctl |
55 | if [ ! -x "$TUNCTL" ]; then | 55 | if [ ! -x "$TUNCTL" ]; then |
56 | echo "Error: Unable to find tunctl binary in '$NATIVE_SYSROOT_DIR/usr/bin', please bitbake qemu-helper-native" | 56 | echo "Error: Unable to find tunctl binary in '$STAGING_BINDIR_NATIVE', please bitbake qemu-helper-native" |
57 | exit 1 | 57 | exit 1 |
58 | fi | 58 | fi |
59 | 59 | ||