summarylogtreecommitdiffstats
path: root/ip-up.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ip-up.sh')
-rwxr-xr-xip-up.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/ip-up.sh b/ip-up.sh
new file mode 100755
index 000000000000..ef55a5b1d1b0
--- /dev/null
+++ b/ip-up.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if [ -x "/usr/sbin/pdnsd-ctl" ]; then
+ if [ -n "${DNS2}" ]; then
+ DNS1="${DNS1},${DNS2}"
+ fi
+ /usr/sbin/pdnsd-ctl server dynamic up ${DNS1}
+fi