aboutsummaryrefslogtreecommitdiffstats
path: root/nocompile/bin/greed.sh
diff options
context:
space:
mode:
Diffstat (limited to 'nocompile/bin/greed.sh')
-rw-r--r--nocompile/bin/greed.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/nocompile/bin/greed.sh b/nocompile/bin/greed.sh
new file mode 100644
index 0000000..2bfbf17
--- /dev/null
+++ b/nocompile/bin/greed.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+#helper script. used in epoch's /etc/ifconfig.gre0 for his laptop
+#usage: $0 $interface $VPN_endpoint $port
+#needs epoch's hop0 and gethostbyname or equivalent programs. :P
+ifconfig "$1" tunnel "$(hop0 "$2")","$3" "$(gethostbyname "$2")","$3"