Commit 5ddfea4e authored by Jondy Zhao's avatar Jondy Zhao

Remove mode parameter in the ip vpntap command

parent 723dd8f6
...@@ -782,13 +782,8 @@ elif [[ $object == "vpntap" ]] ; then ...@@ -782,13 +782,8 @@ elif [[ $object == "vpntap" ]] ; then
install_tap_driver "$dev" install_tap_driver "$dev"
exit $? exit $?
elif [[ "$command" == "del" ]] ; then elif [[ "$command" == "del" ]] ; then
if [[ "$mode" == "" ]] ; then
echo $orig_cmd
exit 0
else
uninstall_tap_driver "$dev" uninstall_tap_driver "$dev"
exit $? exit $?
fi
else else
echo $orig_cmd echo $orig_cmd
echo "Error: unsupported command \"$command\" for tuntap" echo "Error: unsupported command \"$command\" for tuntap"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment