Add set-static-resolvers.sh
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
#! /bin/sh
|
||||
|
||||
. ./common.inc
|
||||
|
||||
args="$*"
|
||||
|
||||
[ $# -lt 1 ] && exit 1
|
||||
|
||||
servers=''
|
||||
for server in $args; do
|
||||
servers="${servers} ${server}"
|
||||
done
|
||||
if [ "$servers" = "" ]; then
|
||||
rm -f "$STATIC_RESOLVERS_FILE"
|
||||
else
|
||||
echo "$servers" > "$STATIC_RESOLVERS_FILE"
|
||||
fi
|
||||
Reference in New Issue
Block a user