From c430b7181b5aef37420aa73cb51d5ed2ffa066fd Mon Sep 17 00:00:00 2001 From: Hoang Huynh Date: Thu, 27 Feb 2014 17:50:43 +0700 Subject: [PATCH] clearly state the ~ path for user --- openvpn-install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 1afee19..4044eb4 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -13,8 +13,8 @@ fi if [ ! -e /dev/net/tun ]; then - echo "TUN/TAP is not available" - exit + echo "TUN/TAP is not available, please enable it first (contact your provider if you don't know how)" + exit fi @@ -23,7 +23,7 @@ fi # and to avoid getting an IPv6. IP=$(ifconfig | grep 'inet addr:' | grep -v inet6 | grep -vE '127\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | cut -d: -f2 | awk '{ print $1}' | head -1) if [ "$IP" = "" ]; then - IP=$(wget -qO- ipv4.icanhazip.com) + IP=$(wget -qO- ipv4.icanhazip.com) fi @@ -217,6 +217,6 @@ else echo "" echo "Finished!" echo "" - echo "Your client config is available at ~/ovpn-$CLIENT.tar.gz" + echo "Your client config is available at `pwd`/ovpn-$CLIENT.tar.gz" echo "If you want to add more clients, you simply need to run this script another time!" fi