diff options
author | Florin Grad <florin@mandriva.com> | 2003-09-11 14:49:12 +0000 |
---|---|---|
committer | Florin Grad <florin@mandriva.com> | 2003-09-11 14:49:12 +0000 |
commit | 085d9f020adebce9edacd913dbeae9d6e073ca1c (patch) | |
tree | b42070600bffc9730e46ff9f1b9f171fc52e53f2 /perl-install/standalone | |
parent | 245e67dc73ec39f5981e0c8b2f6f5afeeab02293 (diff) | |
download | drakx-085d9f020adebce9edacd913dbeae9d6e073ca1c.tar drakx-085d9f020adebce9edacd913dbeae9d6e073ca1c.tar.gz drakx-085d9f020adebce9edacd913dbeae9d6e073ca1c.tar.bz2 drakx-085d9f020adebce9edacd913dbeae9d6e073ca1c.tar.xz drakx-085d9f020adebce9edacd913dbeae9d6e073ca1c.zip |
some Cancel interface fix
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-x | perl-install/standalone/drakgw | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/perl-install/standalone/drakgw b/perl-install/standalone/drakgw index c2b533afa..00c28ce6f 100755 --- a/perl-install/standalone/drakgw +++ b/perl-install/standalone/drakgw @@ -33,6 +33,7 @@ use log; use c; use network::netconnect; use network::shorewall; +use Data::Dumper; $::isInstall and die "Not supported during install.\n"; @@ -42,7 +43,6 @@ local $_ = join '', @ARGV; $::Wizard_pix_up = "wiz_drakgw.png"; $::direct = /-direct/; - my $sysconf_network = "/etc/sysconfig/network"; my $sysconf_dhcpd = "/etc/sysconfig/dhcpd"; my $rc_firewall_generic = "/etc/rc.d/rc.firewall"; @@ -53,6 +53,7 @@ my $dhcpd_conf = "/etc/dhcpd.conf"; my $cups_conf = "/etc/cups/cupsd.conf"; my $shorewall = network::shorewall::read(); +Dumper($shorewall),"\n"; my $in = 'interactive'->vnew('su'); $::Wizard_title = N("Internet Connection Sharing"); @@ -121,7 +122,7 @@ begin: #- ********************************** #- * 0th step: verify if we are already set up -if ($shorewall && $shorewall->{masquerade}) { +if ($shorewall && (-f "/etc/shorewall/masq")) { $::Wizard_no_previous = 1; if (!$shorewall->{disabled}) { @@ -137,7 +138,7 @@ What would you like to do?"), stop_daemons(); } foreach ($dhcpd_conf, $masq_file) { - rename($_, "$_.drakgwdisable") or die "Could not rename $_ to $_.drakgwdisable" + if ( -f $_ ) { rename($_, "$_.drakgwdisable") or die "Could not rename $_ to $_.drakgwdisable"}; } sys("/etc/init.d/shorewall restart >/dev/null"); log::l("[drakgw] Disabled"); @@ -281,7 +282,7 @@ Do you want an automatic re-configuration? You can do it manually but you need to know what you're doing.", $device), [ { label => N("Automatic reconfiguration"), val => \$auto, list => [ N("Yes"), N("No (experts only)") ] }, { val => N("Show current interface configuration"), clicked => - sub { $in->ask_warn(N("Current interface configuration"), + sub { $in-> ask_okcancel(N("Current interface configuration"), N("Current configuration of `%s': Network: %s |