From 47a6395ee891488be4becd1f3292bd28811f0069 Mon Sep 17 00:00:00 2001 From: tv Date: Mon, 14 Jan 2013 16:36:13 +0100 Subject: retiolum apply-custom-hosts-patches: initial commit Custom hosts patches are currently used for "LAN supernodes". Example patch: --- destroy 2012-05-12 04:13:57.081041849 +0100 +++ destroy 2013-01-13 18:35:30.087707751 +0100 @@ -1,3 +1,4 @@ +Address = destroy.local Subnet = 42:9277:1f1e:7599:ae4b:7cca:b4a3:fe47/128 Subnet = 10.243.0.31/32 Compression = 9 --- retiolum/bin/apply-custom-hosts-patches | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 retiolum/bin/apply-custom-hosts-patches (limited to 'retiolum/bin') diff --git a/retiolum/bin/apply-custom-hosts-patches b/retiolum/bin/apply-custom-hosts-patches new file mode 100755 index 00000000..2b2fda80 --- /dev/null +++ b/retiolum/bin/apply-custom-hosts-patches @@ -0,0 +1,8 @@ +#! /bin/sh +set -euf + +patch=/etc/tinc/retiolum/hosts.patch + +if test -e $patch; then + patch -N -d /etc/tinc/retiolum/hosts -r - < $patch +fi -- cgit v1.2.3