NetworkManager isn't provided on SLES. As yast2 lan is available on all
openSUSE / SLE distro, use it instead.
---
p2v/gui.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/p2v/gui.c b/p2v/gui.c
index e720002..58a68ec 100644
--- a/p2v/gui.c
+++ b/p2v/gui.c
@@ -654,7 +654,11 @@ test_connection_ok (gpointer user_data)
static void
configure_network_button_clicked (GtkWidget *w, gpointer data)
{
- ignore_value (system ("nm-connection-editor &"));
+ struct stat statbuf;
+ if (access ("/sbin/yast2", X_OK) >= 0)
+ ignore_value (system ("yast2 lan &"));
+ else
+ ignore_value (system ("nm-connection-editor &"));
}
/**
--
2.6.6