#!/usr/bin/python -W ignore::DeprecationWarning

from ocfs2interface.about import process_args
nodeconf = process_args()

try:
    import gtk
except RuntimeError:
    import sys
    print >>sys.stderr, '''ERROR: ocfs2console needs an X11 display.
Make sure a proper setup for your display environment exists.\n'''
    sys.exit(1)

if nodeconf:
    from ocfs2interface.nodeconfig import node_config
    node_config()
else:
    from ocfs2interface.console import main
    main()
