From patchwork Sun Jan 18 05:46:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Gimpelevich X-Patchwork-Id: 430152 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 C0EC61401AC for ; Sun, 18 Jan 2015 16:47:41 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id ECEE8289111; Sun, 18 Jan 2015 06:45:01 +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, 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 3914428017F for ; Sun, 18 Jan 2015 06:44:40 +0100 (CET) X-policyd-weight: using cached result; rate: -7.6 Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Sun, 18 Jan 2015 06:44:39 +0100 (CET) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YCihI-0001G6-IM for openwrt-devel@lists.openwrt.org; Sun, 18 Jan 2015 06:46:52 +0100 Received: from 108-169-6-253.dsl.dynamic.fusionbroadband.com ([108.169.6.253]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 18 Jan 2015 06:46:52 +0100 Received: from daniel by 108-169-6-253.dsl.dynamic.fusionbroadband.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 18 Jan 2015 06:46:52 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: openwrt-devel@lists.openwrt.org From: Daniel Gimpelevich Date: Sat, 17 Jan 2015 21:46:46 -0800 Lines: 17 Message-ID: <1421560006.6126.24.camel@chimera> Mime-Version: 1.0 X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 108-169-6-253.dsl.dynamic.fusionbroadband.com X-Mailer: Evolution 3.10.4-0ubuntu2 Subject: [OpenWrt-Devel] [PATCH 1/4] lantiq: Fix initscript issue 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: , Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Currently this initscript fails if the macaddr has any leading zeroes. This patch corrects the problem. Signed-off-by: Daniel Gimpelevich --- a/target/linux/lantiq/base-files/etc/init.d/esi (revision 44023) +++ b/target/linux/lantiq/base-files/etc/init.d/esi (working copy) @@ -3,5 +3,5 @@ START=19 start() { - esi $(printf '%X' $((1+0x$(tr -d : /dev/null || : + esi $(printf '%012X' $((1+0x$(tr -d : /dev/console || : }