diff options
author | Ermal <eri@pfsense.org> | 2010-08-23 14:59:45 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-08-23 14:59:45 +0000 |
commit | f0e58f4c37ed5b3e0161ea0985215c30a6853819 (patch) | |
tree | 9887ec0ad6fc384622b7122415eb9dbf49b21bbf /etc/rc.resolv_conf_generate | |
parent | 24d619f5b696914e6b793bbf3c84b25131066b7b (diff) | |
download | pfsense-f0e58f4c37ed5b3e0161ea0985215c30a6853819.zip pfsense-f0e58f4c37ed5b3e0161ea0985215c30a6853819.tar.gz |
Add a script to rewrite the resolv.conf file for dns configuration. This is one part of Ticket #838 to allow sending an event for rewriting resolv.conf on down event from ppp type interfaces.
Diffstat (limited to 'etc/rc.resolv_conf_generate')
-rw-r--r-- | etc/rc.resolv_conf_generate | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/etc/rc.resolv_conf_generate b/etc/rc.resolv_conf_generate new file mode 100644 index 0000000..022431c --- /dev/null +++ b/etc/rc.resolv_conf_generate @@ -0,0 +1,35 @@ +#!/usr/local/bin/php -f +<?php +/* + Copyright (C) 2010 Ermal Luçi + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, + OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. +*/ + +require_once("globals.inc"); +require_once("config.inc"); +require_once("functions.inc"); + +system_resolvconf_generate(true); + +?> |