diff options
| author | Michael Biebl <biebl@debian.org> | 2010-11-29 19:00:27 +0100 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2010-11-29 19:00:27 +0100 |
| commit | 90764db0c249831a00ca5506fc2913a418eb980a (patch) | |
| tree | 88199b4c694a5977b407670b54e5c160985b1399 /src/backends/NetworkManagerDebian.c | |
| parent | 262012122f6fdb67f1645c009beb5f8c477e5868 (diff) | |
| parent | a6b89d35fabd9f5934b84d7cde22e9268f92c3d3 (diff) | |
Merge commit 'upstream/0.8.2' into experimental
Diffstat (limited to 'src/backends/NetworkManagerDebian.c')
| -rw-r--r-- | src/backends/NetworkManagerDebian.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/backends/NetworkManagerDebian.c b/src/backends/NetworkManagerDebian.c index ef9475af..37eb6457 100644 --- a/src/backends/NetworkManagerDebian.c +++ b/src/backends/NetworkManagerDebian.c @@ -1,3 +1,4 @@ +/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */ /* NetworkManager -- Network link manager * * Matthew Garrett <mjg59@srcf.ucam.org> @@ -44,7 +45,11 @@ */ void nm_system_enable_loopback (void) { - nm_spawn_process ("/sbin/ifup lo"); + /* ifupdown isn't always installed (bgo #625427) */ + if (g_file_test ("/sbin/ifup", G_FILE_TEST_EXISTS)) + nm_spawn_process ("/sbin/ifup lo"); + else + nm_generic_enable_loopback (); } /* |