get_config.sh : download list from config

This commit is contained in:
bolvan
2019-05-06 19:43:10 +03:00
parent 743f9e5111
commit 1e2571ac8b
4 changed files with 32 additions and 71 deletions

10
ipset/get_config.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
# run script specified in config
SCRIPT=$(readlink -f $0)
EXEDIR=$(dirname $SCRIPT)
. "$EXEDIR/../config"
[ -z "$GETLIST" ] && return
[ -x "$EXEDIR/$GETLIST" ] && "$EXEDIR/$GETLIST"