Avoid an extra blank line

This commit is contained in:
Tom Eastep 2010-07-22 13:51:47 -07:00
parent 666cc35b46
commit 7db9645225

View File

@ -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" );
} }