diff options
| author | makefu <github@syntax-fehler.de> | 2011-09-12 15:29:50 +0200 | 
|---|---|---|
| committer | makefu <github@syntax-fehler.de> | 2011-09-12 15:29:50 +0200 | 
| commit | 53107008a4e5640b3325fdebc56040e734527b3d (patch) | |
| tree | eef4c287fcecccdb46dd91e64e717237c2ce095d /retiolum | |
| parent | a07326f6c57a7e8f49b9bef96ded427275a16e2e (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')
| -rwxr-xr-x | retiolum/bin/get-tinc-dir | 9 | 
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  | 
