From patchwork Tue Jan 13 01:30:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Milburn X-Patchwork-Id: 428217 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 7945014016A for ; Tue, 13 Jan 2015 12:30:51 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 4036C28073C; Tue, 13 Jan 2015 02:28:31 +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 C9A0428017F for ; Tue, 13 Jan 2015 02:28:26 +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-ig0-f176.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -8.5 Received: from mail-ig0-f176.google.com (mail-ig0-f176.google.com [209.85.213.176]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Tue, 13 Jan 2015 02:28:21 +0100 (CET) Received: by mail-ig0-f176.google.com with SMTP id a13so14609776igq.3 for ; Mon, 12 Jan 2015 17:30:32 -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:in-reply-to:references; bh=xSt87f8zewW57s1bCpi7vdvC61DA5mrxIwwnheoyYCo=; b=ms/ydVfSEZhE7v7Xs4mrxFjwuici1yyxnK3IRh3xgUDsSE+8mq6SsAJhtYU8b6g6cA XloSgRbUy8W8KeevBarO0f6JkFGnsBVeGDMZPwqRHSpvC3uMXVfIlzI0sP5PG5ffatad PUQGgG7MVTp4STL0/roQMPzsxPgpqCr6D9c7LZFMqHMY4jLJS6Bd75bMJjTWPhn45xaI QVR2bphOZTI7x6azm622oclrnxwE6IUBW77kHbfOmVDAXrbkjJHFPvNANtC6WU49sAo2 J5picpVEAx6rYimCYbFCJjmmKuEJR7B22j56uLkyPeUUGU3YdlKSu7k5afDrdGVipPHZ O6Iw== X-Received: by 10.42.102.66 with SMTP id h2mr26691274ico.88.1421112632178; Mon, 12 Jan 2015 17:30:32 -0800 (PST) Received: from Rocker.lan (174-16-150-239.hlrn.qwest.net. [174.16.150.239]) by mx.google.com with ESMTPSA id 71sm9459348ios.42.2015.01.12.17.30.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Jan 2015 17:30:31 -0800 (PST) From: Mark Milburn To: kaloz@openwrt.org Date: Mon, 12 Jan 2015 18:30:30 -0700 Message-Id: <1421112630-18804-1-git-send-email-mark.a.milburn@gmail.com> X-Mailer: git-send-email 2.2.1 In-Reply-To: <1421111720-18571-1-git-send-email-mark.a.milburn@gmail.com> References: <1421111720-18571-1-git-send-email-mark.a.milburn@gmail.com> 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 Signed-off-by: Mark Milburn --- .../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 <