diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-04-29 20:02:43 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-29 20:26:13 +0200 |
commit | b8612590984ee39d519ebf45f80e051b6f0d75bf (patch) | |
tree | 2c220c4a96e3613c89c898c69c1e3de636ea05f1 /Meta | |
parent | 4c4015116086606487233d87f4e05a2b58deef59 (diff) | |
download | serenity-b8612590984ee39d519ebf45f80e051b6f0d75bf.zip |
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.
Diffstat (limited to 'Meta')
-rwxr-xr-x | Meta/run.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Meta/run.sh b/Meta/run.sh index d7f606c8d3..e632f70b2b 100755 --- a/Meta/run.sh +++ b/Meta/run.sh @@ -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 \ |