summaryrefslogtreecommitdiff
path: root/bin/extra/ehbvpn
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2023-05-15 22:47:20 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2023-05-15 22:47:20 +0200
commita2238f99ff1f977a47610637b26a14433482582a (patch)
treea11356c18ec2c20bbcfa94cc96ba9deab824acf6 /bin/extra/ehbvpn
parent6d88dfc0e8ed4481607695ae8b057e7442a9fb4a (diff)
use read to ask for login details
Diffstat (limited to 'bin/extra/ehbvpn')
-rwxr-xr-xbin/extra/ehbvpn11
1 files changed, 5 insertions, 6 deletions
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" \