Enable hidden option in system called enablesoftupdates which will turn on soft updates before mounting rw

This commit is contained in:
Scott Ullrich 2007-03-04 19:01:46 +00:00
parent 652b8ce061
commit d5cfa74bf7

View File

@ -376,6 +376,9 @@ function conf_mount_rw() {
if($g['platform'] == "cdrom" or $g['platform'] == "pfSense")
return;
if(isset($config['system']['enablesoftupdates']))
exec("/sbin/tunefs -n enable / 2>/dev/null");
$status = mwexec("/sbin/mount -u -w {$g['cf_path']}");
if($status <> 0) {
if($g['booting'])