#!/bin/sh CONF=/etc/pdnsd.conf CTL=/usr/sbin/pdnsd-ctl [ -f "$CONF" -a -x "$CTL" ] && /sbin/service pdnsd status >/dev/null 2>&1 || exit 0 DNS1LABEL=pppdns1 DNS2LABEL=pppdns2 # USEPEERDNS, DNS1, and DNS2 are variables exported by pppd. # We've been connected, wake up servers! [ -n "$DNS1" ] && "$CTL" server "$DNS1LABEL" up "$DNS1" >/dev/null 2>&1 ||: [ -n "$DNS2" ] && "$CTL" server "$DNS2LABEL" up "$DNS2" >/dev/null 2>&1 ||: