summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-10-16 22:07:03 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-10-16 22:07:03 +0000
commit80ec5eaa6e345d74582c7f25e7ff51127cc2e506 (patch)
tree6dc69ba75f83d83de03d27a1f21306b0afafe5f9 /etc
parent51535829c1f40c9a03dc06480b939b5da460c309 (diff)
downloadpfsense-80ec5eaa6e345d74582c7f25e7ff51127cc2e506.zip
pfsense-80ec5eaa6e345d74582c7f25e7ff51127cc2e506.tar.gz
MFC 6906 6907
Use /var/etc/ for storing configuration files MFC: ASAP (By sullrich) Use /var/etc/ for storing configuration files MFC: ASAP (By sullrich)
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 1431e4d..4f27362 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -543,7 +543,7 @@ group={$wlcfg['wpa']['wpa_pairwise']}
}
EOD;
- $fd = fopen("{$g['tmp_path']}/wpa_supplicant_{$if}.conf", "w");
+ $fd = fopen("{$g['varetc_path']}/wpa_supplicant_{$if}.conf", "w");
fwrite($fd, "{$wpa}");
fclose($fd);
@@ -583,7 +583,7 @@ ieee8021x={$wlcfg['wpa']['ieee8021x']}
#rsn_preauth_interfaces=eth0
EOD;
- $fd = fopen("{$g['tmp_path']}/hostapd_{$if}.conf", "w");
+ $fd = fopen("{$g['varetc_path']}/hostapd_{$if}.conf", "w");
fwrite($fd, "{$wpa}");
fclose($fd);
@@ -620,9 +620,9 @@ EOD;
if (isset($wlcfg['wpa']['enable'])) {
if ($wlcfg['mode'] == BSS)
- mwexec("$wpa_supplicant -i {$if} -c {$g['etc_path']}/wpa_supplicant_{$if}.conf");
+ mwexec("$wpa_supplicant -i {$if} -c {$g['varetc_path']}/wpa_supplicant_{$if}.conf");
if ($wlcfg['mode'] == hostap)
- mwexec("$hostapd -B {$g['tmp_path']}/hostapd_{$if}.conf");
+ mwexec("$hostapd -B {$g['varetc_path']}/hostapd_{$if}.conf");
}
/* Write ifconfig settings to tmp file so we can see if user set something weird */
OpenPOWER on IntegriCloud