add ipv6 config flag

This commit is contained in:
Alfonso Gamboa 2022-04-19 19:59:24 -07:00
parent 54596ffd9c
commit 4feaced010

View File

@ -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