From 9e5efdfd5b56192ea85894879f3d24b3cc4b3358 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 9 Aug 2004 01:04:28 +0000 Subject: (checkNetwork) do not die when gateway canot be guessed (Joe Bolin ) else the applet dies never to be heard from again until the next login b/c with DHCP connections, the gateway information is lost when the network is manually brought down. Indeed gateway is not needed for direct connection through crossover cable. --- perl-install/standalone/net_applet | 2 -- 1 file changed, 2 deletions(-) diff --git a/perl-install/standalone/net_applet b/perl-install/standalone/net_applet index 173aa8e1c..3ed171489 100644 --- a/perl-install/standalone/net_applet +++ b/perl-install/standalone/net_applet @@ -103,8 +103,6 @@ sub checkNetwork() { ($addrgd, $gd) = `/sbin/ip route show` =~ /^default\s+via\s+(\S+).*\s+dev\s+(\S+)/m; } - $gd or die "No Gatewaydev defined"; - if ($addrgd) { go2State('connected', $gd) } else { go2State('disconnected', '') } -- cgit v1.2.1