diff options
author | jim-p <jimp@pfsense.org> | 2013-05-23 13:08:44 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-05-23 13:10:23 -0400 |
commit | 93d9623e0bd770c3f7ae8606bb55d6d1d9429635 (patch) | |
tree | 60cbe74ddfbe08fe1e97e0043cf64c7f2f3cee93 /config/systempatches/patches.inc | |
parent | 61944b680cd6269aa1a6b57b703084ed19b62fb6 (diff) | |
download | pfsense-packages-93d9623e0bd770c3f7ae8606bb55d6d1d9429635.tar.gz pfsense-packages-93d9623e0bd770c3f7ae8606bb55d6d1d9429635.tar.bz2 pfsense-packages-93d9623e0bd770c3f7ae8606bb55d6d1d9429635.zip |
Fix System Patches for NanoBSD (it was missing rw/ro remounts). Bump to 0.9, call it release while we're at it, it's stable, not a beta anymore.
Diffstat (limited to 'config/systempatches/patches.inc')
-rw-r--r-- | config/systempatches/patches.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config/systempatches/patches.inc b/config/systempatches/patches.inc index 9b347620..0547f2cf 100644 --- a/config/systempatches/patches.inc +++ b/config/systempatches/patches.inc @@ -52,12 +52,14 @@ function patch_commit($patch, $action, $test=false, $fulldetail=false) { $whitespace = isset($patch['ignorewhitespace']) ? "--ignore-whitespace" : ""; $pathstrip = '-p' . $patch['pathstrip']; $full_patch_command = "{$patch_cmd} --directory={$directory} {$force} {$pathstrip} {$filename} {$check} {$direction} {$whitespace}"; + conf_mount_rw(); patch_write($patch); if (!$fulldetail) $output = (mwexec($full_patch_command, true) == 0); else $output = $full_patch_command . "\n\n" . shell_exec($full_patch_command . ' 2>&1'); patch_erase($patch); + conf_mount_ro(); return $output; } |