summaryrefslogtreecommitdiffstats
path: root/retiolum/bin/get-tinc-dir
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2011-09-12 15:29:50 +0200
committermakefu <github@syntax-fehler.de>2011-09-12 15:29:50 +0200
commit53107008a4e5640b3325fdebc56040e734527b3d (patch)
treeeef4c287fcecccdb46dd91e64e717237c2ce095d /retiolum/bin/get-tinc-dir
parenta07326f6c57a7e8f49b9bef96ded427275a16e2e (diff)
retiolum/bin: get-tinc-dir returns the config dir of tinc
supportet are currently all Linux/SunOS/Darwin as well as CYGWIN and MING
Diffstat (limited to 'retiolum/bin/get-tinc-dir')
-rwxr-xr-xretiolum/bin/get-tinc-dir9
1 files changed, 9 insertions, 0 deletions
diff --git a/retiolum/bin/get-tinc-dir b/retiolum/bin/get-tinc-dir
new file mode 100755
index 00000000..3f48b2cd
--- /dev/null
+++ b/retiolum/bin/get-tinc-dir
@@ -0,0 +1,9 @@
+#!/bin/ksh
+case `uname -a` in
+ Linux*|CYGWIN*|MING*) echo "/etc/tinc"
+ ;;
+ SunOS*|Darwin*) echo "/usr/local/etc/tinc"
+ ;;
+ *) echo "/etc/tinc"
+ ;;
+esac