#---------------------------------------------------------------------------- # /var/install/include/restore-resolv - configuration of default resolv # # Creation : 2023-01-02 hbfl # Last Update: $Id$ # # Copyright (c) 2001-@@YEAR@@ 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. #---------------------------------------------------------------------------- # # update the route after a special package was stopped to restore default settings # included from bind, etc.. # # include base config . /etc/config.d/base if [ -n "${DNS_SERVER}" -o -n "${DOMAIN_NAME}" ] then { if [ -n "${DOMAIN_NAME}" ] then echo search ${DOMAIN_NAME} fi for dns_server in ${DNS_SERVER} do echo nameserver ${dns_server} done } >/etc/resolv.conf fi