zapret/ipset/get_config.sh

11 lines
238 B
Bash
Raw Normal View History

2021-03-04 16:30:38 +05:00
#!/bin/sh
# run script specified in config
IPSET_DIR="$(dirname "$0")"
IPSET_DIR="$(cd "$IPSET_DIR"; pwd)"
. "$IPSET_DIR/../config"
[ -z "$GETLIST" ] && GETLIST=get_exclude.sh
[ -x "$IPSET_DIR/$GETLIST" ] && exec "$IPSET_DIR/$GETLIST"