Revert "Correct order of optional interface and address variable handling"

This reverts commit 9253f90ac5.
This commit is contained in:
Tom Eastep 2018-01-28 12:29:38 -08:00
parent 9253f90ac5
commit 09cda21dd4

View File

@ -312,8 +312,10 @@ sub generate_script_2() {
push_indent;
if ( $global_variables == ( ALL_COMMANDS | NOT_RESTORE ) ) {
handle_optional_interfaces(0);
set_global_variables(0, 0);
handle_optional_interfaces(0);
}
emit ';;';
@ -325,14 +327,16 @@ sub generate_script_2() {
push_indent;
}
handle_optional_interfaces(1);
set_global_variables(1,1);
if ( $global_variables & NOT_RESTORE ) {
handle_optional_interfaces(1);
emit ';;';
pop_indent;
pop_indent;
emit ( 'esac' );
} else {
handle_optional_interfaces(1);
}
} else {
emit( 'true' ) unless handle_optional_interfaces(1);