summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-02-11 12:30:26 -0200
committerRenato Botelho <garga@FreeBSD.org>2014-02-11 12:31:09 -0200
commit5833def1a5ccd4b625ff07349c4060a33772d897 (patch)
tree2705dae59ef3c35eebb7f76f7ff7f1ed3e086a46 /etc
parent3442e3536c7782126c6f7740a70751774eda145c (diff)
downloadpfsense-5833def1a5ccd4b625ff07349c4060a33772d897.zip
pfsense-5833def1a5ccd4b625ff07349c4060a33772d897.tar.gz
Fix symlink calls adding full link name, it fixes issue reported at https://forum.pfsense.org/index.php/topic,72405.0.html
Diffstat (limited to 'etc')
-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 5c4416e..124ee2b 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']}/mpd.script");
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']}/mpd_{$interface}.conf");
else {
$fd = fopen("{$g['varetc_path']}/mpd_{$interface}.conf", "w");
if (!$fd) {
OpenPOWER on IntegriCloud