From b8612590984ee39d519ebf45f80e051b6f0d75bf Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 29 Apr 2021 20:02:43 +0200 Subject: 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. --- Meta/run.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'Meta') 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 \ -- cgit v1.2.3