Improved -nm patch to go online when no connection is available
This commit is contained in:
parent
c7b5c5d5ea
commit
dc39044280
|
@ -1,26 +1,35 @@
|
|||
diff -up ypbind-mt-1.20.4/src/ypbind_dbus_nm.c.nm ypbind-mt-1.20.4/src/ypbind_dbus_nm.c
|
||||
--- ypbind-mt-1.20.4/src/ypbind_dbus_nm.c.nm 2007-02-14 14:01:57.000000000 +0100
|
||||
+++ ypbind-mt-1.20.4/src/ypbind_dbus_nm.c 2009-01-26 16:05:58.000000000 +0100
|
||||
+++ ypbind-mt-1.20.4/src/ypbind_dbus_nm.c 2010-04-15 14:25:22.661754059 +0200
|
||||
@@ -320,13 +320,13 @@ dbus_init (void)
|
||||
if (check_online (connection) == 1)
|
||||
{
|
||||
if (debug_flag)
|
||||
- log_msg (LOG_DEBUG, "Are already online");
|
||||
- is_online = 1;
|
||||
+ log_msg (LOG_DEBUG, "Network is available now");
|
||||
+ go_online();
|
||||
+ log_msg (LOG_DEBUG, "Network is available.");
|
||||
+ go_online ();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (debug_flag)
|
||||
- log_msg (LOG_DEBUG, "Are offline");
|
||||
+ log_msg (LOG_DEBUG, "No network is available now");
|
||||
+ log_msg (LOG_DEBUG, "No network is available. Waiting...");
|
||||
is_online = 0;
|
||||
}
|
||||
return 1;
|
||||
@@ -335,7 +335,7 @@ dbus_init (void)
|
||||
{
|
||||
if (debug_flag)
|
||||
log_msg (LOG_DEBUG, "No connection possible, assume online mode");
|
||||
- is_online = 1;
|
||||
+ go_online ();
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
diff -up ypbind-mt-1.20.4/src/ypbind-mt.c.nm ypbind-mt-1.20.4/src/ypbind-mt.c
|
||||
--- ypbind-mt-1.20.4/src/ypbind-mt.c.nm 2009-01-26 16:05:58.000000000 +0100
|
||||
+++ ypbind-mt-1.20.4/src/ypbind-mt.c 2009-01-26 16:05:58.000000000 +0100
|
||||
--- ypbind-mt-1.20.4/src/ypbind-mt.c.nm 2010-04-15 14:04:29.869877527 +0200
|
||||
+++ ypbind-mt-1.20.4/src/ypbind-mt.c 2010-04-15 14:27:54.874878127 +0200
|
||||
@@ -765,9 +765,17 @@ main (int argc, char **argv)
|
||||
BINDINGDIR, strerror (errno));
|
||||
exit (1);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Summary: The NIS daemon which binds NIS clients to an NIS domain
|
||||
Name: ypbind
|
||||
Version: 1.20.4
|
||||
Release: 21%{?dist}
|
||||
Release: 22%{?dist}
|
||||
License: GPLv2
|
||||
Group: System Environment/Daemons
|
||||
Source0: ftp://ftp.us.kernel.org/pub/linux/utils/net/NIS/ypbind-mt-%{version}.tar.bz2
|
||||
|
@ -103,6 +103,10 @@ fi
|
|||
%doc README NEWS
|
||||
|
||||
%changelog
|
||||
* Thu Apr 15 2010 Karel Klic <kklic@redhat.com> - 3:1.20.4-22
|
||||
- Improved -nm patch to go online when no connection is available
|
||||
#480096
|
||||
|
||||
* Fri Nov 13 2009 Karel Klic <kklic@redhat.com> - 3:1.20.4-21
|
||||
- Added signalstate patch, which fixes compilation with
|
||||
NetworkManaged-devel headers installed. Resolves #537064.
|
||||
|
|
Loading…
Reference in New Issue