aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-08-11 00:38:13 +0200
committerdoktornotor <notordoktor@gmail.com>2015-08-11 00:38:13 +0200
commit5a9556553fad6ca50010b226747418495bcade72 (patch)
tree362a08d3cfe200adb05e1523f53864e00168fd95 /config
parent691f9919981b7e2f8bc3d215429d92a78b5f948f (diff)
downloadpfsense-packages-5a9556553fad6ca50010b226747418495bcade72.tar.gz
pfsense-packages-5a9556553fad6ca50010b226747418495bcade72.tar.bz2
pfsense-packages-5a9556553fad6ca50010b226747418495bcade72.zip
ladvd - code style fixes
- Fix copyright header and indentation
Diffstat (limited to 'config')
-rw-r--r--config/ladvd/ladvd.inc26
1 files changed, 14 insertions, 12 deletions
diff --git a/config/ladvd/ladvd.inc b/config/ladvd/ladvd.inc
index acf277b3..da37a1a9 100644
--- a/config/ladvd/ladvd.inc
+++ b/config/ladvd/ladvd.inc
@@ -1,7 +1,10 @@
<?php
/*
ladvd.inc
- Copyright (C) 2006 Scott Ullrich
+ part of pfSense (https://www.pfSense.org/)
+ Copyright (C) 2014 Andrea Tuccia
+ Copyright (C) 2014 Ermal Luçi
+ Copyright (C) 2015 ESF, LLC
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -25,7 +28,6 @@
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("util.inc");
require_once("functions.inc");
@@ -50,39 +52,39 @@ function ladvd_resync_config() {
$cmdline = "";
if (!empty($ladvd_conf['autoenable'])) {
- $cmdline .= "-a ";
+ $cmdline .= "-a ";
}
if (!empty($ladvd_conf['silent'])) {
- $cmdline .= "-s ";
+ $cmdline .= "-s ";
}
if (!empty($ladvd_conf['management'])) {
- $cmdline .= "-m " . escapeshellarg(get_real_interface($ladvd_conf['management'])) . " ";
+ $cmdline .= "-m " . escapeshellarg(get_real_interface($ladvd_conf['management'])) . " ";
}
if (!empty($ladvd_conf['location'])) {
- $cmdline .= "-l '{$ladvd_conf['location']}' ";
+ $cmdline .= "-l '{$ladvd_conf['location']}' ";
}
if (!empty($ladvd_conf['lldp'])) {
- $cmdline .= "-L ";
+ $cmdline .= "-L ";
}
if (!empty($ladvd_conf['cdp'])) {
- $cmdline .= "-C ";
+ $cmdline .= "-C ";
}
if (!empty($ladvd_conf['edp'])) {
- $cmdline .= "-E ";
+ $cmdline .= "-E ";
}
if (!empty($ladvd_conf['fdp'])) {
- $cmdline .= "-F ";
+ $cmdline .= "-F ";
}
if (!empty($ladvd_conf['ndp'])) {
- $cmdline .= "-N ";
+ $cmdline .= "-N ";
}
$ifaces = explode(",", $ladvd_conf['iface_array']);
@@ -91,7 +93,7 @@ function ladvd_resync_config() {
write_rcfile(array(
"file" => "ladvd.sh",
- "start" => "/usr/local/sbin/ladvd $cmdline",
+ "start" => "/usr/local/sbin/ladvd {$cmdline}",
"stop" => "/usr/bin/killall -9 ladvd"
)
);