mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
rc: improve print
This commit is contained in:
parent
100b1b46b9
commit
ed90ebd56d
@ -465,21 +465,22 @@ if (!$config['interfaces']['lan']) {
|
||||
$restart_dhcpd = true;
|
||||
}
|
||||
|
||||
$upperifname = strtoupper($interface);
|
||||
echo "\nPlease wait while the changes are saved to {$upperifname}...";
|
||||
write_config(sprintf('%s IP configuration from console menu', $interface));
|
||||
write_config(sprintf('%s configuration from console menu', $interface));
|
||||
|
||||
interface_bring_down($interface);
|
||||
interface_configure($interface);
|
||||
echo "\n Reloading filter...";
|
||||
filter_configure_sync();
|
||||
interface_configure($interface, true);
|
||||
filter_configure_sync(true);
|
||||
|
||||
if ($restart_dhcpd) {
|
||||
echo "\n DHCPD...";
|
||||
services_dhcpd_configure();
|
||||
services_dhcpd_configure('all', array(), true);
|
||||
}
|
||||
|
||||
if ($restart_webgui) {
|
||||
mwexec('/usr/local/etc/rc.restart_webgui');
|
||||
webgui_configure_do(true);
|
||||
}
|
||||
|
||||
$upperifname = strtoupper($interface);
|
||||
|
||||
if ($intip != '') {
|
||||
if (is_ipaddr($intip)) {
|
||||
echo sprintf(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user