diff -r dfbeb7da829f tools/examples/block-enbd --- a/tools/examples/block-enbd Thu Aug 18 19:51:46 2005 +++ b/tools/examples/block-enbd Fri Aug 19 00:23:30 2005 @@ -1,4 +1,6 @@ #!/bin/sh + +PATH=$PATH:/sbin:/bin:/usr/sbin:/usr/bin:; export PATH # Usage: block-enbd [bind server ctl_port |unbind node] # diff -r dfbeb7da829f tools/examples/block-file --- a/tools/examples/block-file Thu Aug 18 19:51:46 2005 +++ b/tools/examples/block-file Fri Aug 19 00:23:30 2005 @@ -1,4 +1,6 @@ #!/bin/sh + +PATH=$PATH:/sbin:/bin:/usr/sbin:/usr/bin:; export PATH # Usage: block_loop [bind file|unbind node] # diff -r dfbeb7da829f tools/examples/network-bridge --- a/tools/examples/network-bridge Thu Aug 18 19:51:46 2005 +++ b/tools/examples/network-bridge Fri Aug 19 00:23:30 2005 @@ -42,19 +42,20 @@ # Exit if anything goes wrong. set -e -# First arg is the operation. -OP=$1 -shift - # Pull variables in args in to environment. -for arg ; do export "${arg}" ; done +for arg; do + case ${arg} in + *=*) export "${arg}" ;; + *) OP="${arg}" ;; + esac +done bridge=${bridge:-xen-br0} netdev=${netdev:-eth0} antispoof=${antispoof:-no} echo "*network $OP bridge=$bridge netdev=$netdev antispoof=$antispoof" >&2 - +exit # Usage: transfer_addrs src dst # Copy all IP addresses (including aliases) from device $src to device $dst. transfer_addrs () { diff -r dfbeb7da829f tools/examples/network-nat --- a/tools/examples/network-nat Thu Aug 18 19:51:46 2005 +++ b/tools/examples/network-nat Fri Aug 19 00:23:30 2005 @@ -16,17 +16,19 @@ # #============================================================================ +PATH=$PATH:/sbin:/bin:/usr/sbin:/usr/bin:; export PATH # Exit if anything goes wrong. set -e -# First arg is the operation. -OP=$1 -shift - # Pull variables in args in to environment. -for arg ; do export "${arg}" ; done +for arg; do + case ${arg} in + *=*) export "${arg}" ;; + *) OP="${arg}" ;; + esac +done netdev=${netdev:-eth0} # antispoofing not yet implemented diff -r dfbeb7da829f tools/examples/network-route --- a/tools/examples/network-route Thu Aug 18 19:51:46 2005 +++ b/tools/examples/network-route Fri Aug 19 00:23:30 2005 @@ -16,4 +16,15 @@ # #============================================================================ +PATH=$PATH:/sbin:/bin:/usr/sbin:/usr/bin:; export PATH + +# Pull variables in args in to environment. +for arg; do + case ${arg} in + *=*) export "${arg}" ;; + *) OP="${arg}" ;; + esac +done + + echo 1 >/proc/sys/net/ipv4/ip_forward diff -r dfbeb7da829f tools/examples/vif-bridge --- a/tools/examples/vif-bridge Thu Aug 18 19:51:46 2005 +++ b/tools/examples/vif-bridge Fri Aug 19 00:23:30 2005 @@ -30,6 +30,8 @@ # Removes the vif interface from the bridge and removes the iptables # rules for its ip addresses (if any). #============================================================================ + +PATH=$PATH:/sbin:/bin:/usr/sbin:/usr/bin:; export PATH # Exit if anything goes wrong set -e diff -r dfbeb7da829f tools/examples/vif-nat --- a/tools/examples/vif-nat Thu Aug 18 19:51:46 2005 +++ b/tools/examples/vif-nat Fri Aug 19 00:23:30 2005 @@ -19,6 +19,8 @@ # vif vif interface name (required). # ip list of IP networks for the vif, space-separated (required). #============================================================================ + +PATH=$PATH:/sbin:/bin:/usr/sbin:/usr/bin:; export PATH # Exit if anything goes wrong set -e diff -r dfbeb7da829f tools/examples/vif-route --- a/tools/examples/vif-route Thu Aug 18 19:51:46 2005 +++ b/tools/examples/vif-route Fri Aug 19 00:23:30 2005 @@ -20,6 +20,8 @@ # mac vif MAC address (required). # ip list of IP networks for the vif, space-separated (optional). #============================================================================ + +PATH=$PATH:/sbin:/bin:/usr/sbin:/usr/bin:; export PATH # Exit if anything goes wrong set -e diff -r dfbeb7da829f tools/examples/xend-config.sxp --- a/tools/examples/xend-config.sxp Thu Aug 18 19:51:46 2005 +++ b/tools/examples/xend-config.sxp Fri Aug 19 00:23:30 2005 @@ -28,7 +28,7 @@ ## Use the following if VIF traffic is bridged. # The script used to start/stop networking for xend. -(network-script network-bridge) +(network-script 'network-bridge netdev=eth0' ) # The default bridge that virtual interfaces should be connected to. (vif-bridge xen-br0) # The default script used to control virtual interfaces. @@ -47,8 +47,8 @@ # Dom0 will balloon out when needed to free memory for domU. # dom0-min-mem is the lowest memory level (in MB) dom0 will get down to. # If dom0-min-mem=0, dom0 will never balloon out. -(dom0-min-mem 0) +(dom0-min-mem 128) # In SMP system, dom0 will use only CPUs in range [1,dom0-cpus] # If dom0-cpus = 0, dom0 will take all cpus available -(dom0-cpus 0) +(dom0-cpus 1) diff -r dfbeb7da829f tools/examples/init.d/xend --- a/tools/examples/init.d/xend Thu Aug 18 19:51:46 2005 +++ b/tools/examples/init.d/xend Fri Aug 19 00:23:30 2005 @@ -6,6 +6,8 @@ # # chkconfig: 2345 98 01 # description: Starts and stops the Xen control daemon. + +PATH=$PATH:/sbin:/bin:/usr/sbin:/usr/bin:; export PATH if ! [ -e /proc/xen/privcmd ]; then exit 0 diff -r dfbeb7da829f tools/examples/init.d/xendomains --- a/tools/examples/init.d/xendomains Thu Aug 18 19:51:46 2005 +++ b/tools/examples/init.d/xendomains Fri Aug 19 00:23:30 2005 @@ -26,6 +26,8 @@ # Description: Start / stop domains automatically when domain 0 # boots / shuts down. ### END INIT INFO + +PATH=$PATH:/sbin:/bin:/usr/sbin:/usr/bin:; export PATH if ! [ -e /proc/xen/privcmd ]; then exit 0 diff -r dfbeb7da829f tools/examples/vnc/Xvnc-xen --- a/tools/examples/vnc/Xvnc-xen Thu Aug 18 19:51:46 2005 +++ b/tools/examples/vnc/Xvnc-xen Fri Aug 19 00:23:30 2005 @@ -19,6 +19,8 @@ # Any arguments are passed to Xvnc. # #============================================================================ + +PATH=$PATH:/sbin:/bin:/usr/sbin:/usr/bin:; export PATH # Prefix for messages. M="[$(basename $0)]" diff -r dfbeb7da829f tools/ioemu/target-i386-dm/qemu-ifup --- a/tools/ioemu/target-i386-dm/qemu-ifup Thu Aug 18 19:51:46 2005 +++ b/tools/ioemu/target-i386-dm/qemu-ifup Fri Aug 19 00:23:30 2005 @@ -1,4 +1,6 @@ #!/bin/sh + +PATH=$PATH:/sbin:/bin:/usr/sbin:/usr/bin:; export PATH #. /etc/rc.d/init.d/functions #ulimit -c unlimited