From bc30d9c58b91cf6a1e4ad84fa568624bccb1e4b4 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 4 Feb 2014 18:32:16 -0200 Subject: Silent recently added symlink() calls --- etc/inc/interfaces.inc | 4 ++-- 1 file 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) { -- cgit v1.1