Set static resolvers from the preferences pane.

This commit is contained in:
Frank Denis
2012-09-24 09:33:38 +02:00
parent e889c387e1
commit 052febc509
5 changed files with 47 additions and 5 deletions
@@ -0,0 +1,5 @@
#! /bin/sh
. ./common.inc
[ -r "$STATIC_RESOLVERS_FILE" ] && cat "$STATIC_RESOLVERS_FILE"
@@ -13,5 +13,5 @@ done
if [ "$servers" = "" ]; then
rm -f "$STATIC_RESOLVERS_FILE"
else
echo "$servers" > "$STATIC_RESOLVERS_FILE"
echo "$servers" | sed 's/^ *//;s/ *$//' > "$STATIC_RESOLVERS_FILE"
fi