diff options
author | Phil Davis <phil.davis@inf.org> | 2015-02-25 01:08:35 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-02-25 01:08:35 +0545 |
commit | e173dd74fd009a4771552fb0e2cb3ee508072d30 (patch) | |
tree | bea5145e029d123a60deef2758f6563fcceb1fed /etc/rc.newipsecdns | |
parent | b8b3784f243f8f8a372cf976fa2385ca1e14e80c (diff) | |
download | pfsense-e173dd74fd009a4771552fb0e2cb3ee508072d30.zip pfsense-e173dd74fd009a4771552fb0e2cb3ee508072d30.tar.gz |
Code style for etc files
Diffstat (limited to 'etc/rc.newipsecdns')
-rwxr-xr-x | etc/rc.newipsecdns | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/etc/rc.newipsecdns b/etc/rc.newipsecdns index 870283a..7fecff8 100755 --- a/etc/rc.newipsecdns +++ b/etc/rc.newipsecdns @@ -3,21 +3,21 @@ /* rc.newipsecdns part of m0n0wall (http://m0n0.ch/wall) - + Copyright (C) 2007 Manuel Kasper <mk@neon1.net>. Copyright (C) 2009 Seth Mos <seth.mos@dds.nl>. 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 @@ -35,20 +35,22 @@ require_once("util.inc"); require_once("config.inc"); require_once("gwlb.inc"); require_once("functions.inc"); -require_once("filter.inc"); -require_once("shaper.inc"); +require_once("filter.inc"); +require_once("shaper.inc"); require_once("ipsec.inc"); require_once("vpn.inc"); /* make sure to wait until the boot scripts have finished */ -if (file_exists("{$g['varrun_path']}/booting")) +if (file_exists("{$g['varrun_path']}/booting")) { return; +} if (isset($config['ipsec']['enable'])) { sleep(15); log_error("IPSEC: One or more IPsec tunnel endpoints has changed its IP. Refreshing."); -} else +} else { return; +} $ipseclck = lock('ipsecdns', LOCK_EX); |