summaryrefslogtreecommitdiff
path: root/contrib/pppgetpass/pppgetpass.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/pppgetpass/pppgetpass.sh')
-rw-r--r--contrib/pppgetpass/pppgetpass.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/pppgetpass/pppgetpass.sh b/contrib/pppgetpass/pppgetpass.sh
new file mode 100644
index 0000000..09c4805
--- /dev/null
+++ b/contrib/pppgetpass/pppgetpass.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if [ -z "$DISPLAY" ]; then
+ exec pppgetpass.vt "$@"
+else
+ exec pppgetpass.gtk "$@"
+fi