summaryrefslogtreecommitdiffstats
path: root/rescue/NEWS
diff options
context:
space:
mode:
Diffstat (limited to 'rescue/NEWS')
-rw-r--r--rescue/NEWS2
1 files changed, 2 insertions, 0 deletions
diff --git a/rescue/NEWS b/rescue/NEWS
index 9ecda23dc..c80dd2920 100644
--- a/rescue/NEWS
+++ b/rescue/NEWS
@@ -1,3 +1,5 @@
+Version 1.16 - 9 October 2009, by Olivier "blino" Blin
+
- work both with squashfs 3 and 4
- image restore script (from Paulo Ricardo Zanoni):
o re-read partition table after writing image
r.bz2
drakx-f7d7214aa239ed16ad8ce0c98e73aa321481568a.tar.xz
drakx-f7d7214aa239ed16ad8ce0c98e73aa321481568a.zip
add and use network::shorewall::get_net_device
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/network/shorewall.pm13
1 files changed, 12 insertions, 1 deletions
diff --git a/perl-install/network/shorewall.pm b/perl-install/network/shorewall.pm
index 9a313ec3a..6c930d0e4 100644
--- a/perl-install/network/shorewall.pm
+++ b/perl-install/network/shorewall.pm
@@ -45,6 +45,17 @@ sub get_config_file {
map { [ split ' ' ] } grep { !/^#/ } cat_("$::prefix/etc/shorewall/$file");
}
+sub get_net_device() {
+ my $netcnx = {};
+ my $netc = {};
+ my $intf = {};
+ network::netconnect::read_net_conf($netcnx, $netc, $intf);
+ my $default_intf = network::tools::get_default_gateway_interface($netc, $intf);
+ $default_intf->{DEVICE} =~ /^ippp/ && "ippp+" ||
+ $default_intf->{DEVICE} =~ /^ppp/ && "ppp+" ||
+ $default_intf->{DEVICE};
+}
+
sub default_interfaces_silent {
my ($_in) = @_;
my %conf;
@@ -52,7 +63,7 @@ sub default_interfaces_silent {
if (@l == 1) {
$conf{net_interface} = $l[0];
} else {
- $conf{net_interface} = network::netconnect::get_net_device() || $l[0];
+ $conf{net_interface} = get_net_device() || $l[0];
$conf{loc_interface} = [ grep { $_ ne $conf{net_interface} } @l ];
}
\%conf;