From 978567a89e3a1460f0fc1e9d39c7b70548de6629 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Thu, 25 Apr 2013 19:02:57 +0000 Subject: ramips: set preinit interface to eth0 by default. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This makes any ramips device accessible via ethernet in failsafe mode. Based on: https://dev.openwrt.org/changeset/36322 Signed-off-by: Álvaro Fernández Rojas Patchwork: http://patchwork.openwrt.org/patch/3567/ Acked-by: John Crispin SVN-Revision: 36434 --- .../base-files/lib/preinit/07_set_preinit_iface_ramips | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips (limited to 'target') diff --git a/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips b/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips new file mode 100644 index 0000000000..c8b7f2ad38 --- /dev/null +++ b/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips @@ -0,0 +1,12 @@ +#!/bin/sh +# +# Copyright (C) 2013 OpenWrt.org +# + +. /lib/ramips.sh + +ramips_set_preinit_iface() { + ifname=eth0 +} + +boot_hook_add preinit_main ramips_set_preinit_iface -- cgit v1.2.3