diff options
author | 2012-05-31 17:15:47 +0300 | |
---|---|---|
committer | 2012-05-31 16:23:53 +0200 | |
commit | 72ccc3e20d8fc3090706b0b3b2277bddd5b352c5 (patch) | |
tree | 837f647a34438657e233986a9ba79f1e8d23cf18 /scripts/runqemu-internal | |
parent | d9b1734ebcf6c176532c3cea0b18a58f341ba64c (diff) | |
download | meta-ivi-72ccc3e20d8fc3090706b0b3b2277bddd5b352c5.tar.gz meta-ivi-72ccc3e20d8fc3090706b0b3b2277bddd5b352c5.tar.bz2 meta-ivi-72ccc3e20d8fc3090706b0b3b2277bddd5b352c5.zip |
runqemu-internal: Fix - it needs USERID as argument
Signed-off-by: Andrei Gherzan <andrei.gherzan@windriver.com>
Diffstat (limited to 'scripts/runqemu-internal')
-rwxr-xr-x | scripts/runqemu-internal | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal index baa446b..50733b9 100755 --- a/scripts/runqemu-internal +++ b/scripts/runqemu-internal @@ -181,13 +181,14 @@ if [ "$TAP" = "" ]; then fi GROUPID=`id -g` + USERID=`id -u` echo "Setting up tap interface under sudo" # Redirect stderr since we could see a LD_PRELOAD warning here if pseudo is loaded # but inactive. This looks scary but is harmless - tap=`sudo $QEMUIFUP $GROUPID $OECORE_NATIVE_SYSROOT 2> /dev/null` + tap=`sudo $QEMUIFUP $USERID $GROUPID $OECORE_NATIVE_SYSROOT 2> /dev/null` if [ $? -ne 0 ]; then # Re-run standalone to see verbose errors - sudo $QEMUIFUP $GROUPID $OECORE_NATIVE_SYSROOT + sudo $QEMUIFUP $USERID $GROUPID $OECORE_NATIVE_SYSROOT return fi LOCKFILE="$LOCKDIR/$tap" |