From a2238f99ff1f977a47610637b26a14433482582a Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 15 May 2023 22:47:20 +0200 Subject: use read to ask for login details --- bin/extra/ehbvpn | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'bin') diff --git a/bin/extra/ehbvpn b/bin/extra/ehbvpn index 5d5643c..b9a9f45 100755 --- a/bin/extra/ehbvpn +++ b/bin/extra/ehbvpn @@ -10,12 +10,11 @@ which pptpsetup > /dev/null 2>&1 || name="ehb_tunnel" ip="193.190.238.38" -pass="e-mails/luca.raymaekers@student.ehb.be" -username="$(su aluc -c "pass show $pass" | - grep "^login:" | - cut -f 2- -d ' ')" -password="$(su aluc -c "pass show $pass" | - head -1)" +read -p "username: " username +stty -echo # disable terminal output +read -p "password: " password +stty echo +echo pptpsetup \ --create "$name" \ -- cgit v1.2.3