From 9bef9f18964d135e3b19d3c6331f0a0c02c3957f Mon Sep 17 00:00:00 2001 From: glen Date: Fri, 5 Mar 2021 14:39:46 -0500 Subject: [PATCH] prompt --- installers/install.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/installers/install.sh b/installers/install.sh index 6c40361..475dc3a 100755 --- a/installers/install.sh +++ b/installers/install.sh @@ -13,9 +13,18 @@ function show_splash() { echo -e " \_____/\___/|_|\_\_|_| |_|\___|\__| " echo "Install public key and add packages." + } function install_main () { + + echo -n "Do you wish to install public key and add packages? [y/N]: " + read answer + if [[ $answer != "y" ]]; then + echo "Installation aborted." + exit 0 + fi + sudo modprobe tun sudo curl -so /etc/apt/trusted.gpg.d/oxen.gpg https://deb.oxen.io/pub.gpg echo "deb https://deb.oxen.io $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/oxen.list @@ -31,7 +40,12 @@ echo "Install Lokinet-GUI" function resolv_config () { -echo "Install resolvconf and configure" + echo -n "Do you wish to install and configure resolvconf (recommended)? [y/N]: " + read answer + if [[ $answer != "y" ]]; then + echo "Installation aborted." + + fi sudo apt install resolvconf -y sudo resolvconf -u