#!/bin/sh

#     DESCRIPTION
#
# Set fallback nameserver for network live boot


NAME="init3-resolve"

verbose()
{
    if [ -n "$GLOBAL_VERBOSE" ]; then
        echo "HOOK: $NAME: $@"
    fi
}

verbose "has started"

echo 'nameserver 8.8.8.8' >> /etc/resolv.conf

find /var -name resolv.conf  -or -name nsswitch.conf | xargs rm

verbose "finished"
