vm-common.sh: use full path to sysctl
authorColin Patrick Mccabe <cmccabe@alumni.cmu.edu>
Wed, 28 May 2014 06:06:32 +0000 (23:06 -0700)
committerColin Patrick Mccabe <cmccabe@alumni.cmu.edu>
Wed, 28 May 2014 06:06:49 +0000 (23:06 -0700)
Signed-off-by: Colin McCabe <cmccabe@alumni.cmu.edu>

vm-common.sh

index ba0f77a..9f8bbef 100644 (file)
@@ -4,7 +4,7 @@ die() {
 }
 
 run_vm() {
-    sysctl -w net.ipv4.ip_forward=1 || die "failed to enable ip_forward"
+    /usr/sbin/sysctl -w net.ipv4.ip_forward=1 || die "failed to enable ip_forward"
     ID=$1
     shift
     NARGS=$@