From patchwork Tue Jan 13 01:15:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Milburn X-Patchwork-Id: 428212 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 6B75514016A for ; Tue, 13 Jan 2015 12:15:39 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 2FB8728073C; Tue, 13 Jan 2015 02:13:18 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 369D2280532 for ; Tue, 13 Jan 2015 02:13:12 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gmail. - helo: .mail-ie0-f174.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -8.5 Received: from mail-ie0-f174.google.com (mail-ie0-f174.google.com [209.85.223.174]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Tue, 13 Jan 2015 02:13:11 +0100 (CET) Received: by mail-ie0-f174.google.com with SMTP id at20so229374iec.5 for ; Mon, 12 Jan 2015 17:15:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=03nLyRgvk0+unZNwFGMmvzarTyAswSr7da/swWzX64A=; b=np55upECXbRuHbr5Lx/DEMfbEJ2NonUhSaQyngGBcfiv0eaXSgT8oqcd4jcNMtfQ7D KPKZZI+OIl5aCkxKX5klV/PiLSaB2ecdNB+ZpW380UQL7X/a1muKArLFVEXe8pJZgjBA 71Z4GUf2+EhyZZilGBiu29PkKFPKvifTDa7UJHq8ZaJwI8B532NaA3cGjVltRb8JoKzF JbrzKCBEDvj/HmYBAXBt5Nl0b5VcbWiHwdQGrqkDnrptXsEzkmusvlY3gLr4Nnd8ma5I sNxCKcrycZMNAj9az9VMSD1qAYfYkIZBERBB5yJ4aa7tGhA5GmU+NSnMMJNmA0/pbZZC Lzyg== X-Received: by 10.107.7.94 with SMTP id 91mr30228207ioh.27.1421111722695; Mon, 12 Jan 2015 17:15:22 -0800 (PST) Received: from Rocker.lan (174-16-150-239.hlrn.qwest.net. [174.16.150.239]) by mx.google.com with ESMTPSA id d1sm5245084igr.20.2015.01.12.17.15.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Jan 2015 17:15:21 -0800 (PST) From: Mark Milburn To: kaloz@openwrt.org Date: Mon, 12 Jan 2015 18:15:20 -0700 Message-Id: <1421111720-18571-1-git-send-email-mark.a.milburn@gmail.com> X-Mailer: git-send-email 2.2.1 Cc: openwrt-devel@lists.openwrt.org Subject: [OpenWrt-Devel] [PATCH] [mvebu] WRT1900AC set default switch config X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Set the default configuration for the switch so that is consistent with how it was configured by u-Boot. These changes are essentially identical to: https://dev.openwrt.org/browser/trunk/target/linux/kirkwood/base-files/etc/uci-defaults/02_network?rev=43750 --- .../linux/mvebu/base-files/etc/uci-defaults/02_network | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/target/linux/mvebu/base-files/etc/uci-defaults/02_network b/target/linux/mvebu/base-files/etc/uci-defaults/02_network index 8b1ed6a..a17b239 100644 --- a/target/linux/mvebu/base-files/etc/uci-defaults/02_network +++ b/target/linux/mvebu/base-files/etc/uci-defaults/02_network @@ -7,6 +7,19 @@ touch /etc/config/network +add_port_based_vlan() { + local device=$1 + local vlan=$2 + local ports=$3 + uci batch <