ia64/xen-unstable

diff tools/python/xen/xend/osdep.py @ 11855:b75fbced2353

[SOLARIS] The hotplug scripts live in a different place on Solaris.

Signed-off-by: John Levon <john.levon@sun.com>
author kfraser@localhost.localdomain
date Tue Oct 17 18:28:27 2006 +0100 (2006-10-17)
parents
children a682d1be3f95
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tools/python/xen/xend/osdep.py	Tue Oct 17 18:28:27 2006 +0100
     1.3 @@ -0,0 +1,27 @@
     1.4 +#!/usr/bin/env python
     1.5 +#
     1.6 +# This library is free software; you can redistribute it and/or
     1.7 +# modify it under the terms of version 2.1 of the GNU Lesser General Public
     1.8 +# License as published by the Free Software Foundation.
     1.9 +#
    1.10 +# This library is distributed in the hope that it will be useful,
    1.11 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.12 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.13 +# Lesser General Public License for more details.
    1.14 +#
    1.15 +# You should have received a copy of the GNU Lesser General Public
    1.16 +# License along with this library; if not, write to the Free Software
    1.17 +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1.18 +#
    1.19 +
    1.20 +# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
    1.21 +# Use is subject to license terms.
    1.22 +
    1.23 +import os
    1.24 +
    1.25 +_scripts_dir = {
    1.26 +    "Linux": "/etc/xen/scripts",
    1.27 +    "SunOS": "/usr/lib/xen/scripts",
    1.28 +}
    1.29 +
    1.30 +scripts_dir = _scripts_dir.get(os.uname()[0], "/etc/xen/scripts")