diff --git a/xCAT/postscripts/routeop b/xCAT/postscripts/routeop index b1b0b96ff..16ff37607 100755 --- a/xCAT/postscripts/routeop +++ b/xCAT/postscripts/routeop @@ -79,7 +79,7 @@ if [[ "$result" == "0" ]]; then if [[ $OSTYPE = linux* ]]; then cmd="route add -net $net netmask $mask gw $gw" else - $cmd="route add -net $net -netmask $mask $gw" + cmd="/etc/route add -net $net -netmask $mask $gw" fi echo "$cmd" result=`$cmd 2>&1` @@ -97,7 +97,7 @@ else if [[ $OSTYPE = linux* ]]; then cmd="route delete -net $net netmask $mask gw $gw" else - $cmd="route delete -net $net -netmask $mask $gw" + cmd="route delete -net $net -netmask $mask $gw" fi echo "$cmd" result=`$cmd 2>&1`