From patchwork Sat Nov 7 20:12:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: play4fun X-Patchwork-Id: 541387 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 0DB3C1402D9 for ; Sun, 8 Nov 2015 07:13:54 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=qq.com header.i=@qq.com header.b=h+l1+RLa; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 2DF2C28C071; Sat, 7 Nov 2015 21:11:13 +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, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 9853528C06B for ; Sat, 7 Nov 2015 21:10:59 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 HELO_IP_IN_CL16_SUBNET=-0.41 (check from: .qq. - helo: .smtpbg64.qq. - helo-domain: .qq.) CL_HOSTNAME_MATCHES_FROM(DOMAIN)=-1.2; rate: -6.11 Received: from smtpbg64.qq.com (smtpbg62.qq.com [103.7.29.139]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Sat, 7 Nov 2015 21:10:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201307; t=1446927163; bh=ABuNZ+ShBw56GLx51k4JZKiQ/kLUnTWRPCRNsY/ivlA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=h+l1+RLa3YJvsY7NEbQKCdMXoNLzAq0D+RsnalDNVRQUHuVjYg1TrZHArG1kNuQXO 8pCAz7jsQN+NRfnGkA6gEvp885+Ib5R+CgoaMpFKjHv02sD6C9ItSjr0MYTt5ZgiMy yqaems5CyddKhnjUIVhdW/1fePJRJWiNA0TBwp5E= X-QQ-mid: esmtp33t1446927162t345t24408 Received: from ubuntu-desktop.lan (unknown [27.38.168.246]) by esmtp4.qq.com (ESMTP) with id ; Sun, 08 Nov 2015 04:12:42 +0800 (CST) X-QQ-SSF: B1010000000000F0F6500F00000000P X-QQ-FEAT: /2O7Dyku7/PLKD2Y0bZSrpE6WbsP+yU0xQH/KBFQ4MhS843LMcxO3wfTZHPGu UNkGRnnhgV+KqvPtU6MSG2WNoGnuvwYnJkaL7Kl3GqshltlJLAv4N0FAtILyYYnGihtAmwY P+rpPW3w5ZO9pfZj7Csa/FIZnliLIbm3LikjlvEG8Sjr6NELvn+M18MKNuq1wYsDCMXcu/t vxlhxDyAL3Za+EpQr6WHdy40FZRi9BK0zSNlCCU8fw19VBjMiBlSP X-QQ-GoodBg: 0 From: Shonn Lu To: openwrt-devel@lists.openwrt.org Date: Sun, 8 Nov 2015 04:12:30 +0800 Message-Id: <1446927151-11562-3-git-send-email-countrysideboy@qq.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1446927151-11562-1-git-send-email-countrysideboy@qq.com> References: <1446927151-11562-1-git-send-email-countrysideboy@qq.com> X-QQ-SENDSIZE: 520 Subject: [OpenWrt-Devel] [PATCH] oxnas: fix the incorrect board names 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" Signed-off-by: Shonn Lu Acked-by: Daniel Golle --- target/linux/oxnas/base-files/etc/board.d/01_leds | 2 +- target/linux/oxnas/base-files/etc/diag.sh | 4 ++-- target/linux/oxnas/base-files/lib/oxnas.sh | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/target/linux/oxnas/base-files/etc/board.d/01_leds b/target/linux/oxnas/base-files/etc/board.d/01_leds index 17e37cd..f075764 100755 --- a/target/linux/oxnas/base-files/etc/board.d/01_leds +++ b/target/linux/oxnas/base-files/etc/board.d/01_leds @@ -14,7 +14,7 @@ case $board in kd20) ucidef_set_led_default "power" "power" "kd20:blue:status" "1" ;; - pogoplugpro | pogoplugv3) + pogoplug-pro | pogoplug-v3) ucidef_set_led_default "power" "power" "pogoplug:blue:internal" "1" ;; diff --git a/target/linux/oxnas/base-files/etc/diag.sh b/target/linux/oxnas/base-files/etc/diag.sh index 5370696..8f484ae 100644 --- a/target/linux/oxnas/base-files/etc/diag.sh +++ b/target/linux/oxnas/base-files/etc/diag.sh @@ -6,13 +6,13 @@ get_status_led() { case $(oxnas_board_name) in - stg212) + stg-212) status_led="zyxel:blue:status" ;; kd20) status_led="kd20:blue:status" ;; - pogoplugpro | pogoplugv3) + pogoplug-pro | pogoplug-v3) status_led="pogoplug:blue:internal" ;; esac diff --git a/target/linux/oxnas/base-files/lib/oxnas.sh b/target/linux/oxnas/base-files/lib/oxnas.sh index 1a04d55..2a07928 100755 --- a/target/linux/oxnas/base-files/lib/oxnas.sh +++ b/target/linux/oxnas/base-files/lib/oxnas.sh @@ -14,16 +14,16 @@ oxnas_board_detect() { case "$machine" in *"MitraStar Technology Corp. STG-212"*) - name="stg212" + name="stg-212" ;; *"Shuttle KD20"*) name="kd20" ;; *"Pogoplug Pro"*) - name="pogoplugpro" + name="pogoplug-pro" ;; *"Pogoplug V3"*) - name="pogoplugv3" + name="pogoplug-v3" ;; esac