fixed defect 3378195

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10296 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
linggao 2011-08-16 17:52:17 +00:00
parent 005575ceda
commit 181d1c7ffb

View File

@ -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`