From patchwork Sun Feb 8 07:42:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cezary Jackiewicz X-Patchwork-Id: 437671 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 54DE7140142 for ; Sun, 8 Feb 2015 18:42:42 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 5456F28A60C; Sun, 8 Feb 2015 08:40:00 +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 9DE4B2890C4 for ; Sun, 8 Feb 2015 08:39:55 +0100 (CET) X-policyd-weight: using cached result; rate: -8.5 Received: from mail-la0-f45.google.com (mail-la0-f45.google.com [209.85.215.45]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Sun, 8 Feb 2015 08:39:55 +0100 (CET) Received: by lams18 with SMTP id s18so8155614lam.13 for ; Sat, 07 Feb 2015 23:42:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-transfer-encoding; bh=ljVxCBJdSDHcY0TK6xe3i7ecWV659B/a/Nsn88OiKU4=; b=kvsm5yU8TP+Ctl/K2JZ/ha0oGcB8bTXKwolnr7d8MsikjweTngKfD6jxgLLL+ZYEGa ORsO0C/Hy4MCsiSplto/J/oG5VCd4EI63vmEvRiTCzDhEIeCCqFAo/A2cQa8aLAfyF2z SuRJYjRFrGP/Bl9x8IsM1qOyxVTYpmuAI7LENKlKXPgxgzI3/vvDCAGbg5lvr7dgHuae 4QKVmGOUI3X1w9C5/r9fju9qAwOoUdHvJP3j0qMhPk7EkJW+Bq0UyKttROMwYxYfykMo PwlakpNfb0x5337cmiY6VLsTyN9qZJz3g4MO1WR3MtGXpjcOssZ34ZSKCVHFn+zh61Hl yJbQ== X-Received: by 10.152.178.132 with SMTP id cy4mr4705072lac.10.1423381349964; Sat, 07 Feb 2015 23:42:29 -0800 (PST) Received: from samsung (178235241016.warszawa.vectranet.pl. [178.235.241.16]) by mx.google.com with ESMTPSA id n3sm1310032lbm.39.2015.02.07.23.42.28 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Sat, 07 Feb 2015 23:42:28 -0800 (PST) Date: Sun, 8 Feb 2015 08:42:25 +0100 From: Cezary Jackiewicz To: OpenWrt Development List Message-ID: <20150208084225.381dd5d2@samsung> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.23; x86_64-pc-linux-gnu) MIME-Version: 1.0 Subject: [OpenWrt-Devel] [PATCH] lantiq: td-w8970: fix failsafe mode 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" Fix failsafe mode for TD-W8970, register interface for preinit. Signed-off-by: Cezary Jackiewicz diff --git a/target/linux/lantiq/base-files/lib/preinit/05_set_preinit_iface_lantiq b/target/linux/lantiq/base-files/lib/preinit/05_set_preinit_iface_lantiq new file mode 100644 index 0000000..3d7fabf --- /dev/null +++ b/target/linux/lantiq/base-files/lib/preinit/05_set_preinit_iface_lantiq @@ -0,0 +1,18 @@ +#!/bin/sh + +. /lib/functions/lantiq.sh + +set_preinit_iface() { + + board=$(lantiq_board_name) + + case "$board" in + TDW8970) + ifname=eth0 + ;; + esac + +} + +boot_hook_add preinit_main set_preinit_iface +