summaryrefslogtreecommitdiffstats
path: root/ferm/include-by-hostname
diff options
context:
space:
mode:
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
+