summaryrefslogtreecommitdiffstats
path: root/etc/inc/util.inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-12-28 09:41:47 +0000
committerErmal Luçi <eri@pfsense.org>2009-12-28 09:42:23 +0000
commit6955830f96ee6f3912a89e271eb59e501dfe3514 (patch)
treef1f6cbf3f4e76be76594a04ee0f90a937f49282d /etc/inc/util.inc
parent39618326e0ddd3d79f2596b6a11d9bc09da6ded0 (diff)
downloadpfsense-6955830f96ee6f3912a89e271eb59e501dfe3514.zip
pfsense-6955830f96ee6f3912a89e271eb59e501dfe3514.tar.gz
Replace some occurrence of /tmp with the propper global variable in attempt to minimize the search for what changes /tmp permissions.
Diffstat (limited to 'etc/inc/util.inc')
-rw-r--r--etc/inc/util.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/inc/util.inc b/etc/inc/util.inc
index 35ac8cc..169fb7d 100644
--- a/etc/inc/util.inc
+++ b/etc/inc/util.inc
@@ -941,10 +941,12 @@ function unmute_kernel_msgs() {
}
function start_devd() {
+ global $g;
+
exec("/sbin/devd");
sleep(1);
- if(file_exists("/tmp/rc.linkup"))
- unlink("/tmp/rc.linkup");
+ if(file_exists("{$g['tmp_path']}/rc.linkup"))
+ unlink("{$g['tmp_path']}/rc.linkup");
}
function is_interface_mismatch() {
OpenPOWER on IntegriCloud