Merge lost hunk
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Thu, 12 May 2011 11:44:55 +0000 (13:44 +0200)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Thu, 12 May 2011 11:44:55 +0000 (13:44 +0200)
scripts/vserver.functions

index d35a4fe..a10344d 100644 (file)
@@ -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