mirror of
https://gitlab.com/shorewall/code.git
synced 2025-02-17 02:00:57 +01:00
Avoid an extra blank line
This commit is contained in:
parent
666cc35b46
commit
7db9645225
@ -1287,6 +1287,8 @@ sub verify_required_interfaces( $ ) {
|
|||||||
my $interfaces = find_interfaces_by_option 'wait';
|
my $interfaces = find_interfaces_by_option 'wait';
|
||||||
|
|
||||||
if ( @$interfaces ) {
|
if ( @$interfaces ) {
|
||||||
|
my $first = 1;
|
||||||
|
|
||||||
emit( "local waittime\n" );
|
emit( "local waittime\n" );
|
||||||
|
|
||||||
emit( 'case "$COMMAND" in' );
|
emit( 'case "$COMMAND" in' );
|
||||||
@ -1300,6 +1302,8 @@ sub verify_required_interfaces( $ ) {
|
|||||||
for my $interface (@$interfaces ) {
|
for my $interface (@$interfaces ) {
|
||||||
my $wait = $interfaces{$interface}{options}{wait};
|
my $wait = $interfaces{$interface}{options}{wait};
|
||||||
|
|
||||||
|
emit q() unless $first-- > 0;
|
||||||
|
|
||||||
if ( $wait ) {
|
if ( $wait ) {
|
||||||
my $physical = get_physical $interface;
|
my $physical = get_physical $interface;
|
||||||
|
|
||||||
@ -1330,7 +1334,7 @@ sub verify_required_interfaces( $ ) {
|
|||||||
emit q( sleep 1);
|
emit q( sleep 1);
|
||||||
emit ' waittime=$(($waittime - 1))';
|
emit ' waittime=$(($waittime - 1))';
|
||||||
emit q( done);
|
emit q( done);
|
||||||
emit qq(fi\n);
|
emit q();
|
||||||
}
|
}
|
||||||
|
|
||||||
$returnvalue = 1;
|
$returnvalue = 1;
|
||||||
@ -1342,7 +1346,7 @@ sub verify_required_interfaces( $ ) {
|
|||||||
pop_indent;
|
pop_indent;
|
||||||
pop_indent;
|
pop_indent;
|
||||||
|
|
||||||
emit( 'esac' );
|
emit( "esac\n" );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user