mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 11:36:10 +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
Notes:
sideshowbarker
2024-07-18 18:54:26 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/b8612590984 Pull-request: https://github.com/SerenityOS/serenity/pull/6739
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
Reference in a new issue