aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-04-13 16:38:18 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-04-13 16:38:18 -0300
commit0df6e71db32d719e607b449cc36a93aba1713679 (patch)
treede470729459fbf2cee77e54a83b5944fa7622e89
parent52bd565a7a0b22b7d3a270450a036e7beca954bf (diff)
parent55cdc501c9fe51202da2f23f960c658e3d9a32f8 (diff)
downloadpfsense-packages-0df6e71db32d719e607b449cc36a93aba1713679.tar.gz
pfsense-packages-0df6e71db32d719e607b449cc36a93aba1713679.tar.bz2
pfsense-packages-0df6e71db32d719e607b449cc36a93aba1713679.zip
Merge pull request #861 from dneuhaeuser/patch-3
-rw-r--r--config/squidGuard/squidguard_configurator.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/config/squidGuard/squidguard_configurator.inc b/config/squidGuard/squidguard_configurator.inc
index ca66d89a..551ca542 100644
--- a/config/squidGuard/squidguard_configurator.inc
+++ b/config/squidGuard/squidguard_configurator.inc
@@ -2038,15 +2038,16 @@ function squidguard_ramdisk($enable)
# delete old squidguard ramdisk
if (file_exists("/dev/md15")) {
- mwexec("umount -f " . SQUIDGUARD_TMP);
+ mwexec("/sbin/umount -f " . SQUIDGUARD_TMP);
mwexec("sleep 1");
- mwexec("mdconfig -d -u 15");
+ mwexec("/sbin/mdconfig -d -u 15");
}
if ($enable === true) {
# create temp ramdisk
# size 300Mb very nice for work with Archive < 30Mb
# this is size use physical RAM + Swap file
+ mkdir(SQUIDGUARD_TMP);
mwexec("/sbin/mdmfs -s {$ramsize}M md15 " . SQUIDGUARD_TMP);
mwexec("chmod 1777 " . SQUIDGUARD_TMP);
}