mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 17:14:46 +00:00
system: protect against more scripts on bootup
All of these could trigger routing or filter reconfiguration (in turn also routing).
This commit is contained in:
parent
f8a9e5b990
commit
b73e5dd641
@ -34,6 +34,8 @@ require_once("filter.inc");
|
||||
require_once("system.inc");
|
||||
require_once("interfaces.inc");
|
||||
|
||||
exit_on_bootup();
|
||||
|
||||
$argument = isset($argv[1]) ? trim($argv[1]) : 'wan';
|
||||
|
||||
interface_configure(true, $argument, true);
|
||||
|
||||
@ -36,6 +36,8 @@ require_once("util.inc");
|
||||
require_once("system.inc");
|
||||
require_once("interfaces.inc");
|
||||
|
||||
exit_on_bootup();
|
||||
|
||||
if (count($argv) > 1 && is_numeric($argv[1])) {
|
||||
// starting delayed.
|
||||
sleep($argv[1]);
|
||||
|
||||
@ -33,6 +33,8 @@ require_once 'system.inc';
|
||||
require_once 'interfaces.inc';
|
||||
require_once 'filter.inc';
|
||||
|
||||
exit_on_bootup();
|
||||
|
||||
// drop deleted routes
|
||||
foreach (glob("/tmp/delete_route_*.todo") as $filename) {
|
||||
$network = trim(file_get_contents($filename));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user