Commit ed90ebd5 authored by Franco Fichtner's avatar Franco Fichtner

rc: improve print

parent 100b1b46
......@@ -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(
......
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