// Disables all interactive functions and neither PHP
// nor the web GUI will be killed or restarted.
$upgrading = true;
case (isset($valid_args[$arg])):
$args[$arg] = true;
break;
default:
echo "Invalid option: {$arg}\nUse --help for usage information.\n";
exit;
}
} else {
$args[$arg_count++] = $arg;
}
}
unlink_if_exists("/tmp/config.cache");
conf_mount_rw();
if(!file_exists($GIT_BIN)) {
echo "Cannot find git, fetching...\n";
require_once("config.inc");
require_once("util.inc");
require_once("pkg-utils.inc");
echo "Trying to fetch package info...";
$pkg_info = get_pkg_info();
if ($pkg_info) {
echo " Done.\n";
} else {
$xmlrpc_base_url = get_active_xml_rpc_base_url();
echo "\n" . sprintf(gettext(' >>> Unable to communicate with %1$s. Please verify DNS and interface configuration, and that %2$s has functional Internet connectivity.'), $xmlrpc_base_url, $g['product_name']) . "\n";
return;
}
if (empty($pkg_info["git"])) {
echo "Can't locate git package in pfSense repo. Using FreeBSD pkg repo..";
echo "\n" . sprintf(gettext(' >>> Unable to communicate with %1$s. Please verify DNS and interface configuration, and that %2$s has functional Internet connectivity.'), $xmlrpc_base_url, $g['product_name']) . "\n";