From 018309a328f61175d933d9a9ac9a273d7c1172d3 Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Wed, 11 May 2016 17:08:17 -0500 Subject: [PATCH] Improve Debian 7 workaround --- extras/vpnupgrade_Libreswan.sh | 6 +++--- vpnsetup.sh | 10 ++++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/extras/vpnupgrade_Libreswan.sh b/extras/vpnupgrade_Libreswan.sh index 02f1529..f621bdf 100644 --- a/extras/vpnupgrade_Libreswan.sh +++ b/extras/vpnupgrade_Libreswan.sh @@ -66,9 +66,9 @@ echo "Your existing VPN configuration files will NOT be modified." if [ "$(sed 's/\..*//' /etc/debian_version)" = "7" ]; then echo - echo "IMPORTANT: Workaround required for Debian 7 (Wheezy)." - echo "See: https://gist.github.com/hwdsl2/5a769b2c4436cdf02a90" - echo "Continue only after you have completed the workaround." + echo 'IMPORTANT: Workaround required for Debian 7 (Wheezy).' + echo 'First, run the script at: https://git.io/vpndebian7' + echo 'Continue only after completing this workaround.' fi echo diff --git a/vpnsetup.sh b/vpnsetup.sh index b9f53b6..c14a733 100644 --- a/vpnsetup.sh +++ b/vpnsetup.sh @@ -76,6 +76,16 @@ apt-get -y update apt-get -y install wget dnsutils apt-get -y install iproute gawk grep sed net-tools +if [ "$(sed 's/\..*//' /etc/debian_version)" = "7" ]; then + echo + echo 'IMPORTANT: Workaround required for Debian 7 (Wheezy).' + echo 'First, run the script at: https://git.io/vpndebian7' + echo 'If not already done so, press Ctrl-C to interrupt.' + echo + echo 'Pausing for 30 seconds ...' + sleep 30 +fi + echo echo 'Trying to find Public/Private IP of this server...' echo