hotplug/FreeBSD: fix xendriverdomain rc.d script
authorRoger Pau Monne <roger.pau@citrix.com>
Mon, 20 Jul 2015 14:55:02 +0000 (16:55 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 21 Jul 2015 14:01:25 +0000 (15:01 +0100)
hotplugpath.sh by default is located in /usr/local/etc/xen/scripts on
FreeBSD. Instead of hardcoding it's location use the XEN_SCRIPT_DIR variable
like it's used on the xencommons rc.d script.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/hotplug/FreeBSD/rc.d/xendriverdomain.in

index 25e3edd721f2b11c9a8c85f58f43db7a1ca55d3d..4063c06f3326d88fcfcda7e40e650695e47a0d41 100644 (file)
@@ -7,7 +7,7 @@
 
 . /etc/rc.subr
 
-. /etc/xen/scripts/hotplugpath.sh
+. @XEN_SCRIPT_DIR@/hotplugpath.sh
 
 LD_LIBRARY_PATH="${libdir}"
 export LD_LIBRARY_PATH