summaryrefslogtreecommitdiffstats
path: root/ferm/include-by-hostname
blob: 109a3aa0a5e2c2d100a6c43ff7eb2451fb5be34c (plain)
1
2
3
4
5
6
7
8
9
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