X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=scripts%2Fvserver.functions;h=a10344d7c10207269208fa147357f6fc022758df;hb=be766a320397bace4e8ad1a02d543393dd633d9c;hp=d35a4fe7350a3049cb81a3d40b464aeda800a304;hpb=7d3940efe4739f77f263ea8b88f4652baa8ee132;p=util-vserver.git diff --git a/scripts/vserver.functions b/scripts/vserver.functions index d35a4fe..a10344d 100644 --- a/scripts/vserver.functions +++ b/scripts/vserver.functions @@ -762,7 +762,11 @@ function disableInterfaces IP_ADDR_FLUSH) ;; IP_LINK) ;; ## Ignore the link-down command for now IP_ROUTE) $_IP route del "$@";; - TUNCTL) $_TUNCTL --~persist "$1";; + TUNCTL) + local dev="$1" + shift + $_TUNCTL --~persist "$@" "$dev" + ;; *) echo "Unknown interface-command type '$type'" >&2; false;; esac done