mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
rc: wrap this around for consistency
Early installer is really about an untained system, so we defer *all* system setup and only keep the loopback configuration above it. This way, after config import from the installer system_login_configure() is up-to-date.
This commit is contained in:
parent
4ad78901d6
commit
8cfbc3c218
@ -127,11 +127,6 @@ function interfaces_loopback_configure($verbose = false)
|
||||
flush();
|
||||
}
|
||||
|
||||
/*
|
||||
* This function is called very early, we must
|
||||
* make sure the config is not required.
|
||||
*/
|
||||
|
||||
legacy_interface_setaddress('lo0', '127.0.0.1');
|
||||
legacy_interface_flags('lo0', 'up');
|
||||
|
||||
|
||||
@ -2,6 +2,7 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
Copyright (C) 2014-2016 Franco Fichtner <franco@opnsense.org>
|
||||
Copyright (C) 2004-2009 Scott Ullrich <sullrich@pfsense.org>.
|
||||
Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>.
|
||||
Copyright (C) 2009 Erik Kristensen
|
||||
@ -64,9 +65,6 @@ echo "done.\n";
|
||||
*/
|
||||
system_console_mute();
|
||||
|
||||
system_devd_configure(true);
|
||||
system_login_configure(true);
|
||||
|
||||
/* loopback device is required early for syslog and the installer */
|
||||
interfaces_loopback_configure(true);
|
||||
|
||||
@ -95,6 +93,9 @@ global $config;
|
||||
$config = parse_config(true);
|
||||
convert_config();
|
||||
|
||||
system_devd_configure(true);
|
||||
system_login_configure(true);
|
||||
|
||||
/*
|
||||
* Determine if we need to throw a interface exception
|
||||
* and ask the user to reassign interfaces. This will
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user