From 4feaced0106d63f152c17f9173cdb12bf210f494 Mon Sep 17 00:00:00 2001 From: Alfonso Gamboa Date: Tue, 19 Apr 2022 19:59:24 -0700 Subject: [PATCH] add ipv6 config flag --- SD_ROOT/wz_mini/run_mmc.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/SD_ROOT/wz_mini/run_mmc.sh b/SD_ROOT/wz_mini/run_mmc.sh index 0a497de..5a6ab16 100755 --- a/SD_ROOT/wz_mini/run_mmc.sh +++ b/SD_ROOT/wz_mini/run_mmc.sh @@ -18,6 +18,8 @@ REMOTE_SPOTLIGHT_HOST="0.0.0.0" RTSP_ENABLED="false" RTSP_ENABLE_AUDIO="false" +ENABLE_IPV6="false" + DEBUG_ENABLED="false" ##################################### @@ -35,6 +37,13 @@ swap_enable() { fi } +if [[ "$ENABLE_IPV6" == "true" ]]; then +echo "ipv6 enabled" +else +echo "ipv6 disabled" +sysctl -w net.ipv6.conf.all.disable_ipv6=1 +fi + if [[ "$ENABLE_USB_ETH" == "true" ]]; then swap_enable