summaryrefslogtreecommitdiff
path: root/target/linux/mpc85xx
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-04-12 18:30:25 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-04-12 18:30:25 +0000
commit687b3f04ceafa1301ddc709c70c6f006df611323 (patch)
tree2b5d140e754c0253237b719f7d227fd2380e956e /target/linux/mpc85xx
parent40e15b1fbf50217d99ae593d9ba32d6124e611bc (diff)
downloadmtk-20170518-687b3f04ceafa1301ddc709c70c6f006df611323.zip
mtk-20170518-687b3f04ceafa1301ddc709c70c6f006df611323.tar.gz
mtk-20170518-687b3f04ceafa1301ddc709c70c6f006df611323.tar.bz2
mpc85xx: set preinit interface to eth0 by default
This makes the WDR4900 accessible via ethernet in failsafe mode. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 36322
Diffstat (limited to 'target/linux/mpc85xx')
-rw-r--r--target/linux/mpc85xx/base-files/lib/preinit/05_set_preinit_iface_mpc85xx12
1 files changed, 12 insertions, 0 deletions
diff --git a/target/linux/mpc85xx/base-files/lib/preinit/05_set_preinit_iface_mpc85xx b/target/linux/mpc85xx/base-files/lib/preinit/05_set_preinit_iface_mpc85xx
new file mode 100644
index 0000000..22d7471
--- /dev/null
+++ b/target/linux/mpc85xx/base-files/lib/preinit/05_set_preinit_iface_mpc85xx
@@ -0,0 +1,12 @@
+#!/bin/sh
+#
+# Copyright (C) 2013 OpenWrt.org
+#
+
+. /lib/mpc85xx.sh
+
+mpc85xx_set_preinit_iface() {
+ ifname=eth0
+}
+
+boot_hook_add preinit_main mpc85xx_set_preinit_iface