mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
Bring out the common console-handling code from main.py and create.py.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
562df47667
commit
2d15771b61
1 file changed
+26
@@ -0,0 +1,26 @@
|
||||
#============================================================================
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of version 2.1 of the GNU Lesser General Public
|
||||
# License as published by the Free Software Foundation.
|
||||
#
|
||||
# This library is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this library; if not, write to the Free Software
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
#============================================================================
|
||||
# Copyright (C) 2005 XenSource Ltd
|
||||
#============================================================================
|
||||
|
||||
|
||||
XENCONSOLE = "xenconsole"
|
||||
|
||||
|
||||
import xen.util.auxbin
|
||||
|
||||
|
||||
def execConsole(domid):
|
||||
xen.util.auxbin.execute(XENCONSOLE, [str(domid)])
|
||||