diff options
author | Florin Grad <florin@mandriva.com> | 2003-09-11 14:49:59 +0000 |
---|---|---|
committer | Florin Grad <florin@mandriva.com> | 2003-09-11 14:49:59 +0000 |
commit | 711b68c0797935f86f29981591e3f9c8e46a2077 (patch) | |
tree | e2ff8b22a2ec85d224e5a020d99f725f36bbfaa8 | |
parent | 085d9f020adebce9edacd913dbeae9d6e073ca1c (diff) | |
download | drakx-711b68c0797935f86f29981591e3f9c8e46a2077.tar drakx-711b68c0797935f86f29981591e3f9c8e46a2077.tar.gz drakx-711b68c0797935f86f29981591e3f9c8e46a2077.tar.bz2 drakx-711b68c0797935f86f29981591e3f9c8e46a2077.tar.xz drakx-711b68c0797935f86f29981591e3f9c8e46a2077.zip |
add the network interface window as in the drakgw's case
-rw-r--r-- | perl-install/network/shorewall.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/network/shorewall.pm b/perl-install/network/shorewall.pm index b41bb636a..4cbc6e74d 100644 --- a/perl-install/network/shorewall.pm +++ b/perl-install/network/shorewall.pm @@ -123,7 +123,9 @@ sub write { set_config_file('masq', $conf->{masquerade} ? [ $conf->{net_interface}, $conf->{masquerade}{subnet} ] : (), ); - + system('uniq /etc/shorewall/masq > /etc/shorewall/masq.uniq'); + rename("/etc/shorewall/masq.uniq", "/etc/shorewall/masq"); + if ($conf->{disabled}) { run_program::rooted($::prefix, 'chkconfig', '--del', 'shorewall'); run_program::run('service', '>', '/dev/null', 'shorewall', 'stop') if $::isStandalone; |