summaryrefslogtreecommitdiffstats
path: root/ferm/include-by-hostname
diff options
context:
space:
mode:
authorThomas NOEL <tnoel@entrouvert.com>2014-12-02 15:20:06 (GMT)
committerThomas NOEL <tnoel@entrouvert.com>2014-12-02 15:20:06 (GMT)
commit0cff6770c3ea6719cfb7411de84e876c43e94ee7 (patch)
tree04bf433341a770ca3f62d600257a046935c819dd /ferm/include-by-hostname
parent0222d53f28da05a187a64cfe10d3b81bfbaebcbe (diff)
downloadeofirewall-0cff6770c3ea6719cfb7411de84e876c43e94ee7.zip
eofirewall-0cff6770c3ea6719cfb7411de84e876c43e94ee7.tar.gz
eofirewall-0cff6770c3ea6719cfb7411de84e876c43e94ee7.tar.bz2
include-by-hostname hackHEADmaster
Diffstat (limited to 'ferm/include-by-hostname')
-rwxr-xr-xferm/include-by-hostname10
1 files changed, 10 insertions, 0 deletions
diff --git a/ferm/include-by-hostname b/ferm/include-by-hostname
new file mode 100755
index 0000000..109a3aa
--- /dev/null
+++ b/ferm/include-by-hostname
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+INCLUDE=$1/`hostname -f`
+if [ ! -r $INCLUDE ]; then
+ echo "ERROR:no-file-$INCLUDE"
+else
+ echo '@hook pre "# File included: '$INCLUDE'";'
+ cat $INCLUDE
+fi
+