mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:47:34 +00:00
Meta: Ensure the tap device is removed before trying to create it again
Sometimes the tap device isn't destroyed depending on how the script exits. Running the script again then fails to create the device again.
This commit is contained in:
parent
4c40151160
commit
b861259098
1 changed files with 1 additions and 0 deletions
|
@ -105,6 +105,7 @@ elif [ "$SERENITY_RUN" = "qn" ]; then
|
|||
-append "${SERENITY_KERNEL_CMDLINE}"
|
||||
elif [ "$SERENITY_RUN" = "qtap" ]; then
|
||||
# Meta/run.sh qtap: qemu with tap
|
||||
sudo ip tuntap del dev tap0 mode tap || true
|
||||
sudo ip tuntap add dev tap0 mode tap user "$(id -u)"
|
||||
"$SERENITY_QEMU_BIN" \
|
||||
$SERENITY_COMMON_QEMU_ARGS \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue