This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
eofirewall/ferm/include-by-hostname

11 lines
166 B
Bash
Executable File

#!/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