mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-15 11:08:34 +05:00
11 lines
236 B
Bash
11 lines
236 B
Bash
|
#!/bin/sh
|
||
|
# run script specified in config
|
||
|
|
||
|
IPSET_DIR="$(dirname "$0")"
|
||
|
IPSET_DIR="$(cd "$IPSET_DIR"; pwd)"
|
||
|
|
||
|
. "$IPSET_DIR/../config"
|
||
|
|
||
|
[ -z "$GETLIST" ] && GETLIST=get_ipban.sh
|
||
|
[ -x "$IPSET_DIR/$GETLIST" ] && exec "$IPSET_DIR/$GETLIST"
|