#! /bin/sh #---------------------------------------------------------------------------- # /etc/rc.d/resolv - set up resolv.conf # # Creation : 2001-10-15 fm # Last Update: $Id$ # # Copyright (c) 2001-2012 the eisfair team, team(at)eisfair(dot)org # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #---------------------------------------------------------------------------- . /etc/config.d/base . /etc/init.d/functions if [ "$RESOLV_DO_DEBUG" = yes ] then set -x fi case $1 in start) boot_mesg " * Setting up resolv.conf ..." if [ "$DNS_SERVER" != "" -o "$DOMAIN_NAME" != "" ] then { if [ "$DOMAIN_NAME" != "" ] then echo search $DOMAIN_NAME fi for dns_server in $DNS_SERVER do echo nameserver $dns_server done } >/etc/resolv.conf fi evaluate_retval ;; stop) ;; esac set +x