summaryrefslogtreecommitdiffstats
path: root/retiolum/bin
diff options
context:
space:
mode:
authormakefu <root@pigstarter.de>2013-01-14 15:59:16 +0000
committermakefu <root@pigstarter.de>2013-01-14 15:59:16 +0000
commit586da6a885ea6fced94e133bcfd965956eb92c75 (patch)
tree799df7f7641e4d9973e6e3dc2c442acf881ddf5d /retiolum/bin
parenta2195f3c9f382acebcf49b3043944f34609e4550 (diff)
parent47a6395ee891488be4becd1f3292bd28811f0069 (diff)
Merge branch 'master' of https://github.com/krebscode/painload
Diffstat (limited to 'retiolum/bin')
-rwxr-xr-xretiolum/bin/apply-custom-hosts-patches8
1 files changed, 8 insertions, 0 deletions
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