mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 16:14:40 +00:00
firmware: test for sample file, not target
PR: https://github.com/opnsense/update/issues/35
This commit is contained in:
parent
1f522b2ed6
commit
e64f0d0b51
@ -875,10 +875,10 @@ function system_firmware_configure($verbose = false)
|
||||
/* rewrite the config via the defaults */
|
||||
$origin_conf = '/usr/local/etc/pkg/repos/OPNsense.conf';
|
||||
/* XXX pre-18.7 fallback */
|
||||
if (!file_exists($origin_conf)) {
|
||||
if (!file_exists("{$origin_conf}.sample")) {
|
||||
$origin_conf = '/usr/local/etc/pkg/repos/origin.conf';
|
||||
}
|
||||
copy("${origin_conf}.sample", $origin_conf);
|
||||
copy("{$origin_conf}.sample", $origin_conf);
|
||||
|
||||
if (!empty($config['system']['firmware']['mirror'])) {
|
||||
mwexecf(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user