diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2010-12-27 13:40:49 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2010-12-27 13:40:58 -0500 |
commit | 6622e126ed73f45979b0f96ccfd8b696cd7a066b (patch) | |
tree | d8634419348a9564a2d1424177484dcfad499603 /etc/inc/pkg-utils.inc | |
parent | 528992bec1753e3cd87920b4614dcaed9ac6185a (diff) | |
download | pfsense-6622e126ed73f45979b0f96ccfd8b696cd7a066b.zip pfsense-6622e126ed73f45979b0f96ccfd8b696cd7a066b.tar.gz |
Unlink needs_package_sync after one pkg has installed OK which means that our internet connection is up.
Diffstat (limited to 'etc/inc/pkg-utils.inc')
-rw-r--r-- | etc/inc/pkg-utils.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/pkg-utils.inc b/etc/inc/pkg-utils.inc index 4a498d7..f9af6a6 100644 --- a/etc/inc/pkg-utils.inc +++ b/etc/inc/pkg-utils.inc @@ -541,7 +541,8 @@ function install_package($package, $pkg_info = "") { $changedesc = "Overwrote previous installation of {$pkg_info['name']}."; $to_output = "overwrite!\n"; } - /* XXX: Fix inclusion of config.inc that causes data loss! */ + if(file_exists('/conf/needs_package_sync')) + @unlink('/conf/needs_package_sync'); conf_mount_ro(); write_config(); $static_output .= $to_output; |