diff options
author | Timo Weingärtner <timo@tiwe.de> | 2012-02-25 21:08:57 +0100 |
---|---|---|
committer | Timo Weingärtner <timo@tiwe.de> | 2012-02-25 21:09:41 +0100 |
commit | 8f32f842b33bdc6617b41dc9f18b222fd3013e21 (patch) | |
tree | 204edc905feee66d6a8d27426b15ecb5fd50b250 /plugins/symlink | |
download | openssh-known-hosts-8ca603d373973396a423fe73ea5dee211465843e.tar.gz |
Imported Debian version 0.1debian/0.1
Diffstat (limited to 'plugins/symlink')
-rwxr-xr-x | plugins/symlink | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/symlink b/plugins/symlink new file mode 100755 index 0000000..159e0e7 --- /dev/null +++ b/plugins/symlink @@ -0,0 +1,14 @@ +#!/bin/dash + +# symlink plugin +# +# ENVIRONMENT VARIABLES: +# LINKDEST known_hosts file to link to +# + +set -e + +[ -f "${LINKDEST}" ] && [ -r "${LINKDEST}" ] +ln -sf "${LINKDEST}" new + +# vim:set ft=sh: |