diff options
author | root <root@destroy> | 2013-01-31 21:13:44 +0100 |
---|---|---|
committer | root <root@destroy> | 2013-01-31 21:13:44 +0100 |
commit | 453593943e41edc1b55372951af1e3b2768e59c0 (patch) | |
tree | 77e69042a80eeaa8413a9e62c1959d8c85de4f46 /retiolum/bin/patch-retiolum-hosts | |
parent | 367edf6e568b9d9ac094693e2c6345f120e2a99c (diff) |
//retiolum patch-retiolum-hosts: allow --reverse
Diffstat (limited to 'retiolum/bin/patch-retiolum-hosts')
-rwxr-xr-x | retiolum/bin/patch-retiolum-hosts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/retiolum/bin/patch-retiolum-hosts b/retiolum/bin/patch-retiolum-hosts new file mode 100755 index 00000000..69d7b92c --- /dev/null +++ b/retiolum/bin/patch-retiolum-hosts @@ -0,0 +1,13 @@ +#! /bin/sh +# +# Apply custom retiolum hosts patches, if any. +# +# usage: patch-retiolum-hosts [--reverse] +# +set -euf + +patch=/etc/tinc/retiolum/hosts.patch + +if test -e $patch; then + patch -N -d /etc/tinc/retiolum/hosts -r - "$@" < $patch +fi |