From cdb292cc264b83a458cd6f8f8908dc38663fed10 Mon Sep 17 00:00:00 2001 From: Robert Love Date: Wed, 26 Apr 2006 19:11:17 +0000 Subject: [PATCH] 2006-04-26 Robert Love * tests/nm-online.c: New file. Simple utility that returns exit status noting whether the connection is offline or online. If offline on start, it waits 60 seconds (or a command-line given value) for an online signal. If it times out, it again returns offline. This is useful for scripts that want to wait for network connections. git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1706 4912f4e0-d625-0410-9fb7-b9a5a253dbdc --- ChangeLog | 8 ++++++++ test/Makefile.am | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0451a8adc7..8a838bb21a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-04-26 Robert Love + + * tests/nm-online.c: New file. Simple utility that returns exit status + noting whether the connection is offline or online. If offline on + start, it waits 60 seconds (or a command-line given value) for an + online signal. If it times out, it again returns offline. This is + useful for scripts that want to wait for network connections. + 2006-04-25 Robert Love * src/nm-ap-security-wep.c: Bug fix: We stopped setting the diff --git a/test/Makefile.am b/test/Makefile.am index cc68e954c4..91a4ca4acc 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -13,12 +13,15 @@ AM_CPPFLAGS = \ -DBINDIR=\"$(bindir)\" \ -DDATADIR=\"$(datadir)\" -noinst_PROGRAMS = nm-tool nminfotest nmtestdevices libnm_glib_test +noinst_PROGRAMS = nm-tool nm-online nminfotest nmtestdevices libnm_glib_test nm_tool_SOURCES = nm-tool.c nm_tool_LDADD = $(DBUS_LIBS) $(GTHREAD_LIBS) $(HAL_LIBS) \ $(top_builddir)/utils/libnmutils.la +nm_online_SOURCES = nm-online.c +nm_online_LDADD = $(DBUS_LIBS) $(GTHREAD_LIBS) $(HAL_LIBS) \ + $(top_builddir)/utils/libnmutils.la nminfotest_SOURCES = nminfotest.c nminfotest_LDADD = $(DBUS_LIBS) $(GTHREAD_LIBS) \