Skip to contentSkip to conversation

ensure paths set in vif scripts

PATCH New Jeremy Katz 1 participant 1 message Oct 6, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ensure paths set in vif scripts

The hotplug agent sets the path now, but that's not as practical to do with udev rules. So instead, make sure that the path is set in the vif scripts themselves.

Jeremy

# HG changeset patch
# User [email protected]
# Node ID 709301c07a9c0339df4780a039a3b0b405826ca8 # Parent f98c8238e9095a2dad33639211ba95a2a459af12 ensure path includes everything needed for our tools

tools/examples/vif-bridge +1 -0
diff -r f98c8238e909 -r 709301c07a9c tools/examples/vif-bridge
@@ -33,6 +33,7 @@
 
 # Exit if anything goes wrong
 set -e 
+export PATH=/sbin:/bin:/usr/bin:/usr/sbin:$PATH
 
 echo "*vif-bridge $*" >&2
 
tools/examples/vif-nat +1 -1
diff -r f98c8238e909 -r 709301c07a9c tools/examples/vif-nat
@@ -22,7 +22,7 @@
 
 # Exit if anything goes wrong
 set -e 
-
+export PATH=/sbin:/bin:/usr/bin:/usr/sbin:$PATH
 echo "*vif-nat $*" >&2
 
 # Operation name.
tools/examples/vif-route +1 -1
diff -r f98c8238e909 -r 709301c07a9c tools/examples/vif-route
@@ -23,7 +23,7 @@
 
 # Exit if anything goes wrong
 set -e 
-
+export PATH=/sbin:/bin:/usr/bin:/usr/sbin:$PATH
 echo "*vif-route $*" >&2
 
 # Operation name.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel