diff options
author | jim-p <jim@pingle.org> | 2010-01-03 19:05:19 -0500 |
---|---|---|
committer | jim-p <jim@pingle.org> | 2010-01-03 19:06:30 -0500 |
commit | 232b01db70f0988f460702ac5787e2102738d407 (patch) | |
tree | 2a2c112b3ddad9a6afe38f1363891dc121bd9d88 /etc | |
parent | 3ab81f02ab19030089116d7d4ecb1ab0c040b197 (diff) | |
download | pfsense-232b01db70f0988f460702ac5787e2102738d407.zip pfsense-232b01db70f0988f460702ac5787e2102738d407.tar.gz |
Fix some package uninstall bits on nano
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pkg-utils.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index 47bd7dc..5d48ffc 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -777,6 +777,7 @@ function delete_package_recursive($pkg) { function delete_package_xml($pkg) { global $g, $config, $fd_log, $static_output, $pkg_interface; + conf_mount_rw(); if(($pkgid = get_pkg_id($pkg)) == -1) { $static_output .= "The {$pkg} package is not installed.\n\nDeletion aborted."; @@ -935,7 +936,11 @@ function delete_package_xml($pkg) { fwrite($tmptab, $line); } fclose($tmptab); + + // Go RW again since the write_config above will put it back to RO + conf_mount_rw(); rename("{$g['tmp_path']}/crontab", "/etc/crontab"); + conf_mount_ro(); } function expand_to_bytes($size) { |