summaryrefslogtreecommitdiffstats
path: root/retiolum/bin/patch-retiolum-hosts
blob: 69d7b92ca412d5c621f1f7d6f01798426a3d77f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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