aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2012-09-04 09:38:24 +0200
committerGerd Hoffmann <kraxel@redhat.com>2012-09-04 09:38:24 +0200
commitb505c5001df0526e8ce21b8ea0f7ffe9a6bf2aac (patch)
tree25b1016cb2a1db975c3cc761dcef905a0691bdfb
parent2ee610770a35ffb922d2dbbcb96ffa280d58be5d (diff)
downloadvconsole-b505c5001df0526e8ce21b8ea0f7ffe9a6bf2aac.tar.gz
use LIBVIRT_DEFAULT_URI
-rw-r--r--vconsole.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vconsole.c b/vconsole.c
index 18084df..3f01887 100644
--- a/vconsole.c
+++ b/vconsole.c
@@ -794,6 +794,8 @@ main(int argc, char *argv[])
}
if (uri == NULL)
+ uri = getenv("LIBVIRT_DEFAULT_URI");
+ if (uri == NULL)
uri = getenv("VIRSH_DEFAULT_CONNECT_URI");
/* init */