Commit f5cedec5 authored by Franco Fichtner's avatar Franco Fichtner

firmware: proper ABI prefix stuffing

parent 8d28488f
...@@ -1373,16 +1373,23 @@ function system_firmware_configure() ...@@ -1373,16 +1373,23 @@ function system_firmware_configure()
{ {
global $config; global $config;
/* our own ABI prefix on the mirror */
$osabi = '15.7';
/* rewrite the config via the defaults */ /* rewrite the config via the defaults */
$origin_conf = '/usr/local/etc/pkg/repos/origin.conf'; $origin_conf = '/usr/local/etc/pkg/repos/origin.conf';
copy("${origin_conf}.sample", $origin_conf); copy("${origin_conf}.sample", $origin_conf);
if (isset($config['system']['firmware']['mirror'])) { if (isset($config['system']['firmware']['mirror'])) {
configd_run('firmware mirror ' . escapeshellarg(str_replace('/', '\/', $config['system']['firmware']['mirror']))); configd_run('firmware mirror ' . escapeshellarg(
str_replace('/', '\/', $config['system']['firmware']['mirror'])
));
} }
if (isset($config['system']['firmware']['flavour'])) { if (isset($config['system']['firmware']['flavour'])) {
configd_run('firmware flavour ' . escapeshellarg(str_replace('/', '\/', $config['system']['firmware']['flavour']))); configd_run('firmware flavour ' . escapeshellarg(
str_replace('/', '\/', $osabi . '/' . $config['system']['firmware']['flavour'])
));
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment