summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-02-04 18:32:16 -0200
committerRenato Botelho <garga@FreeBSD.org>2014-02-04 18:39:08 -0200
commitbc30d9c58b91cf6a1e4ad84fa568624bccb1e4b4 (patch)
treed7d890d28c91b820995c0aef145ab5032362c10c
parentb3cbb077293ab439b63ef08103dfee4e066b56cd (diff)
downloadpfsense-bc30d9c58b91cf6a1e4ad84fa568624bccb1e4b4.zip
pfsense-bc30d9c58b91cf6a1e4ad84fa568624bccb1e4b4.tar.gz
Silent recently added symlink() calls
-rw-r--r--etc/inc/interfaces.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 49c6121..feb2cff 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -1454,7 +1454,7 @@ function interface_ppps_configure($interface) {
}
// mpd5 modem chat script expected in the same directory as the mpd_xxx.conf files
if (!file_exists("{$g['varetc_path']}/mpd.script"))
- symlink("/usr/local/sbin/mpd.script", "{$g['varetc_path']}/.");
+ @symlink("/usr/local/sbin/mpd.script", "{$g['varetc_path']}/.");
if (is_array($config['ppps']['ppp']) && count($config['ppps']['ppp'])) {
foreach ($config['ppps']['ppp'] as $pppid => $ppp) {
@@ -1800,7 +1800,7 @@ EOD;
/* Generate mpd.conf. If mpd_[interface].conf exists in the conf path, then link to it instead of generating a fresh conf file. */
if (file_exists("{$g['conf_path']}/mpd_{$interface}.conf"))
- symlink("{$g['conf_path']}/mpd_{$interface}.conf", "{$g['varetc_path']}/.");
+ @symlink("{$g['conf_path']}/mpd_{$interface}.conf", "{$g['varetc_path']}/.");
else {
$fd = fopen("{$g['varetc_path']}/mpd_{$interface}.conf", "w");
if (!$fd) {
OpenPOWER on IntegriCloud