7 # Check whether pDNSd is already running before starting it.
8 if [ `rc.d list|grep pdnsd|cut -f1 -d']'|cut -d'[' -f2` == 'STOPPED' ]; then
16 # Check for active interface, take offline if none is active
17 if [ ! `nm-tool|grep State|cut -f2 -d' '` = 'connected' ]; then
20 # If another interface is active, restart so we're sure we're using
21 # the active connection.