summaryrefslogtreecommitdiffstats
path: root/perl-install/network
diff options
context:
space:
mode:
authorFlorin Grad <florin@mandriva.com>2003-09-11 14:49:59 +0000
committerFlorin Grad <florin@mandriva.com>2003-09-11 14:49:59 +0000
commit711b68c0797935f86f29981591e3f9c8e46a2077 (patch)
treee2ff8b22a2ec85d224e5a020d99f725f36bbfaa8 /perl-install/network
parent085d9f020adebce9edacd913dbeae9d6e073ca1c (diff)
downloaddrakx-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
Diffstat (limited to 'perl-install/network')
-rw-r--r--perl-install/network/shorewall.pm4
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;