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/Makefile | 1 + retiolum/bin/apply-custom-hosts-patches | 8 ++++++++ 2 files changed, 9 insertions(+) mode change 100644 => 100755 retiolum/Makefile create mode 100755 retiolum/bin/apply-custom-hosts-patches (limited to 'retiolum') diff --git a/retiolum/Makefile b/retiolum/Makefile old mode 100644 new mode 100755 index a8ae0973..f3424dea --- a/retiolum/Makefile +++ b/retiolum/Makefile @@ -29,3 +29,4 @@ startup: hosts: bin/update-retiolum-hosts || :; + sudo bin/apply-custom-hosts-patches 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