Commit ed90ebd5 authored by Franco Fichtner's avatar Franco Fichtner

rc: improve print

parent 100b1b46
...@@ -465,21 +465,22 @@ if (!$config['interfaces']['lan']) { ...@@ -465,21 +465,22 @@ if (!$config['interfaces']['lan']) {
$restart_dhcpd = true; $restart_dhcpd = true;
} }
$upperifname = strtoupper($interface); write_config(sprintf('%s configuration from console menu', $interface));
echo "\nPlease wait while the changes are saved to {$upperifname}...";
write_config(sprintf('%s IP configuration from console menu', $interface));
interface_bring_down($interface); interface_bring_down($interface);
interface_configure($interface); interface_configure($interface, true);
echo "\n Reloading filter..."; filter_configure_sync(true);
filter_configure_sync();
if ($restart_dhcpd) { if ($restart_dhcpd) {
echo "\n DHCPD..."; services_dhcpd_configure('all', array(), true);
services_dhcpd_configure();
} }
if ($restart_webgui) { if ($restart_webgui) {
mwexec('/usr/local/etc/rc.restart_webgui'); webgui_configure_do(true);
} }
$upperifname = strtoupper($interface);
if ($intip != '') { if ($intip != '') {
if (is_ipaddr($intip)) { if (is_ipaddr($intip)) {
echo sprintf( echo sprintf(
......
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