[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] add a way to disable xen's udev script.



On Wed, 2011-06-08 at 17:55 +0100, Vincent Hanquez wrote:
> Add a way to disable xen's udev scripts by using a dummy file.

Why?

Does one of "chmod -x" or "rm" not suffice?

> 
> Signed-off-by: Vincent Hanquez <vincent.hanquez@xxxxxxxxxxxxx>
> 
> diff --git a/tools/hotplug/Linux/xen-hotplug-common.sh 
> b/tools/hotplug/Linux/xen-hotplug-common.sh
> index 370f9ad..e248cae 100644
> --- a/tools/hotplug/Linux/xen-hotplug-common.sh
> +++ b/tools/hotplug/Linux/xen-hotplug-common.sh
> @@ -22,6 +22,8 @@ dir=$(dirname "$0")
>   . "$dir/xen-script-common.sh"
>   . "$dir/locking.sh"
> 
> +[ -f "$dir/NOEXE" ] && exit 0
> +
>   exec 2>>/var/log/xen/xen-hotplug.log
> 
>   export 
> PATH="${BINDIR}:${SBINDIR}:${LIBEXEC}:${PRIVATE_BINDIR}:/sbin:/bin:/usr/bin:/usr/sbin:$PATH"
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.