From f25207e6905913535ecc6af5bae1a209e64ebd8d Mon Sep 17 00:00:00 2001 From: bolvan Date: Tue, 14 May 2019 09:03:39 +0300 Subject: [PATCH] install_easy : add enable ipv6 question --- install_easy.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/install_easy.sh b/install_easy.sh index 0d012eb..7bc5606 100755 --- a/install_easy.sh +++ b/install_easy.sh @@ -178,9 +178,24 @@ select_getlist() GETLIST="" write_config_var GETLIST } +select_ipv6() +{ + local T=N + [ "$DISABLE_IPV6" != '1' ] && T=Y + echo -n "enable ipv6 support (default : $T) (Y/N) ? " + read A + local old6=$DISABLE_IPV6 + if [ "$A" = 'Y' ] || [ "$A" = 'y' ]; then + DISABLE_IPV6=0 + elif [ "$A" = 'N' ] || [ "$A" = 'n' ]; then + DISABLE_IPV6=1 + fi + [ "$old6" != "$DISABLE_IPV6" ] && write_config_var DISABLE_IPV6 +} ask_config() { + select_ipv6 select_mode select_getlist }