Commit 100b1b46 authored by Franco Fichtner's avatar Franco Fichtner

rc: moderate spacing

parent aaa15968
...@@ -143,7 +143,7 @@ if ($count > 1) { ...@@ -143,7 +143,7 @@ if ($count > 1) {
echo "{$x} - {$ifdescr} ({$config_descr})\n"; echo "{$x} - {$ifdescr} ({$config_descr})\n";
$x++; $x++;
} }
echo "\nEnter the number of the interface you wish to configure: "; echo "\nEnter the number of the interface to configure: ";
$intnum = chop(fgets($fp)); $intnum = chop(fgets($fp));
} else { } else {
$intnum = $count; $intnum = $count;
...@@ -170,6 +170,8 @@ if (!$interface) { ...@@ -170,6 +170,8 @@ if (!$interface) {
exit; exit;
} }
echo "\n";
$ifaceassigned = ""; $ifaceassigned = "";
function next_unused_gateway_name($interface) function next_unused_gateway_name($interface)
...@@ -480,13 +482,13 @@ if ($restart_webgui) { ...@@ -480,13 +482,13 @@ if ($restart_webgui) {
if ($intip != '') { if ($intip != '') {
if (is_ipaddr($intip)) { if (is_ipaddr($intip)) {
echo "\n\n" . sprintf( echo sprintf(
'The IPv4 %s address has been set to %s', 'The IPv4 %s address has been set to %s',
$upperifname, $upperifname,
"{$intip}/{$intbits}" "{$intip}/{$intbits}"
) . "\n"; ) . "\n";
} else { } else {
echo "\n\n" . sprintf( echo sprintf(
'The IPv4 %s address has been set to %s', 'The IPv4 %s address has been set to %s',
$upperifname, $upperifname,
$intip $intip
...@@ -495,13 +497,13 @@ if ($intip != '') { ...@@ -495,13 +497,13 @@ if ($intip != '') {
} }
if ($intip6 != '') { if ($intip6 != '') {
if (is_ipaddr($intip6)) { if (is_ipaddr($intip6)) {
echo "\n\n" . sprintf( echo sprintf(
'The IPv6 %s address has been set to %s', 'The IPv6 %s address has been set to %s',
$upperifname, $upperifname,
"${intip6}/${intbits6}" "${intip6}/${intbits6}"
) . "\n"; ) . "\n";
} else { } else {
echo "\n\n" . sprintf( echo sprintf(
'The IPv6 %s address has been set to %s', 'The IPv6 %s address has been set to %s',
$upperifname, $upperifname,
$intip6 $intip6
......
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