mirror of
https://github.com/bol-van/zapret.git
synced 2024-12-30 22:54:31 +00:00
11 lines
269 B
Bash
Executable File
11 lines
269 B
Bash
Executable File
#!/bin/sh
|
|
# run script specified in config
|
|
|
|
IPSET_DIR="$(dirname "$0")"
|
|
IPSET_DIR="$(cd "$IPSET_DIR"; pwd)"
|
|
|
|
[ -f "$IPSET_DIR/../config" ] && . "$IPSET_DIR/../config"
|
|
|
|
[ -z "$GETLIST" ] && GETLIST=get_ipban.sh
|
|
[ -x "$IPSET_DIR/$GETLIST" ] && exec "$IPSET_DIR/$GETLIST"
|