summaryrefslogtreecommitdiff
path: root/target/linux/ramips
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2013-04-25 19:02:57 +0000
committerJohn Crispin <john@openwrt.org>2013-04-25 19:02:57 +0000
commit978567a89e3a1460f0fc1e9d39c7b70548de6629 (patch)
treee7cee7008430bf6a89bd75917eb36c9cb2cbb00e /target/linux/ramips
parent7bfab6e308a54d4fc2b99d9f80b4a4cd735de5b1 (diff)
downloadmtk-20170518-978567a89e3a1460f0fc1e9d39c7b70548de6629.zip
mtk-20170518-978567a89e3a1460f0fc1e9d39c7b70548de6629.tar.gz
mtk-20170518-978567a89e3a1460f0fc1e9d39c7b70548de6629.tar.bz2
ramips: set preinit interface to eth0 by default.
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 <noltari@gmail.com> Patchwork: http://patchwork.openwrt.org/patch/3567/ Acked-by: John Crispin <blogic@openwrt.org> SVN-Revision: 36434
Diffstat (limited to 'target/linux/ramips')
-rw-r--r--target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips12
1 files changed, 12 insertions, 0 deletions
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 0000000..c8b7f2a
--- /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