diff options
author | Dennis Neuhaeuser <dn@arbor.de> | 2015-04-13 21:16:13 +0200 |
---|---|---|
committer | Dennis Neuhaeuser <dn@arbor.de> | 2015-04-13 21:16:13 +0200 |
commit | 55cdc501c9fe51202da2f23f960c658e3d9a32f8 (patch) | |
tree | de470729459fbf2cee77e54a83b5944fa7622e89 | |
parent | 52bd565a7a0b22b7d3a270450a036e7beca954bf (diff) | |
download | pfsense-packages-55cdc501c9fe51202da2f23f960c658e3d9a32f8.tar.gz pfsense-packages-55cdc501c9fe51202da2f23f960c658e3d9a32f8.tar.bz2 pfsense-packages-55cdc501c9fe51202da2f23f960c658e3d9a32f8.zip |
create mountpoint for ramdisk with PHP mkdir
-rw-r--r-- | config/squidGuard/squidguard_configurator.inc | 5 |
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); } |